Revert to check of isMobile method