Fix modal rendering on mobile