Replacing browser-detection with isMobile