Optimize window on mobile