Optimizes modal display for mobile