Mobile login page fix for screen orientation glitch