Fix resolution glitch with mobile devices