Don't let isMobile become a global var.