Better screen size detection on mobile devices