Optimize window size for mobile