On this page
What this issue is
A popup (also called a modal or overlay) is a box that appears on top of your page: a newsletter signup, a discount offer, a cookie notice or a chat prompt. It should always have a clear way out, usually an X in a corner.
On mobile, that X can go wrong in several ways. The popup may be taller than the screen, so the X sits above or below the visible area. The X may be white on a white image, only a few pixels wide, or sit behind the browser's address bar or the phone's notch. A theme may hide it with CSS on small screens. Or a script may fail to load, so the X never renders.
- Visitor lands on mobileAd or search click
- Popup opensTaller than the screen
- Close (X) not reachableOff-screen, tiny or hidden
- Page content blockedForm and buttons under the overlay
- Lead or saleVisitor leaves
The popup opens, the X is off-screen, and the rest of the funnel is never reached.
Why it costs you leads or sales
Most paid and social traffic arrives on phones. If the popup appears early, which is common, a visitor who can't close it never sees your offer, form or checkout. Many will simply go back to the ad or search results. You still pay for the click, and your analytics may show a normal visit, so the loss is easy to miss.
The problem often appears only on certain phones. A popup that fits an iPhone Pro in portrait may overflow a smaller Android phone, or a phone in landscape. Your own testing on one device can look fine.
Example: illustrative numbers only, not real data. Visitors who can't close the popup never reach the form.
How to check if your site has it
Test on real phones if you can, and in your browser's device mode as a backup. Trigger every popup, not just the first one.
Open the page in a mobile view
In Chrome, press F12, then the device toolbar icon. Pick a small phone such as iPhone SE or a 360px wide Android. Also test landscape.
Trigger the popup
Load the page fresh (use a private window so it counts as a first visit) and wait for the popup, or scroll to its trigger.
Look for the X without scrolling the page
It should be fully visible, with room around it. Try tapping it. Then try tapping outside the popup and pressing Escape on a keyboard.
Test with the browser address bar visible
On a real iPhone in Safari or Android in Chrome, the visible height is smaller than the device height. Check the X is not hidden under the bars.
Check every popup type
Newsletter, discount, cookie banner, chat prompt and exit offers can each come from different tools with different settings.
- Visible without scrolling on a 320px wide, 568px tall screen
- Tap target at least 44 by 44 CSS pixels
- Contrasts with the background (not white on a white photo)
- Has an accessible label such as aria-label="Close"
- Tapping outside the popup or pressing Escape also closes it
- Stays clear of the phone notch and browser bars
How to fix it
The core fix is the same everywhere: cap the popup's height to the visible screen, let its content scroll inside it, and pin the X so it never scrolls away. How you apply that depends on your popup tool.
Find which plugin makes the popup
Common ones are Popup Maker, Elementor Popups, OptinMonster and Convert Pro. Check Plugins in the dashboard.
Open the popup's close settings
Make sure the close button is enabled and its position is inside the popup, not outside the edge. In Popup Maker this is under Appearance, Close.
Enable close on overlay click and Escape
Turn on the options for closing when clicking outside and pressing Escape, so there are other ways out.
Reduce height and padding on mobile
Shrink images or use a mobile-specific layout. If needed, add the CSS from the Custom code tab under Appearance, Customize, Additional CSS.
Identify the source
Check Apps in the admin and your theme's own popup section. Apps such as Klaviyo, Privy or Justuno each have their own settings.
Edit the popup's mobile design
Most apps have a separate mobile view. Switch to it, confirm the X shows, and shorten the content.
For theme popups, edit the CSS
In Online Store, Themes, Edit code, add the snippet from the Custom code tab to your main stylesheet, using your popup's real class name.
Find the popup tag
If the popup comes from a Custom HTML tag, open it in Tags and look for its markup and styles.
Apply the height and close fixes
Add the CSS from the Custom code tab inside a style block in that tag, using the popup's selectors.
Preview before publishing
Use Preview mode on a phone-sized window, confirm the X is visible, then publish.
Open the popup in the Designer
Switch to the Mobile portrait breakpoint and select the popup wrapper.
Set max height and overflow
Set Max Height to 90 vh (or 90 dvh via custom CSS) and Overflow to Auto on the content box.
Pin the close button
Give the close element Position: Absolute or Fixed, top and right of 8px, and a size of at least 44px. Make sure its z-index is above the content.
Open the popup in the builder
In Sites, open the funnel or website page and select the popup element.
Switch to the mobile view
Check the close icon is shown and not hidden at the mobile size. Increase its size and set a contrasting colour.
Allow closing by outside click
In the popup settings, enable the option to close when clicking outside, if available, and shorten the content so it fits.
Open the Lightbox
In the Wix Editor, open the lightbox from the Pages and Menu panel.
Switch to the mobile editor
Wix has a separate mobile layout. Make sure the close X is shown and the lightbox fits the screen.
Check the settings
Under lightbox settings, keep the close button enabled and consider letting visitors close by clicking the overlay.
Open the popup settings
Edit the page, then the promotional pop-up under Marketing, Pop-Ups (menu names can vary by version).
Preview on mobile
Use the mobile preview to check the close button and shorten the content or image so it fits.
Add CSS if the X is clipped
In Website, Custom CSS, add a rule from the Custom code tab using the popup's class, found with your browser's inspector.
Cap the modal height
Use max-height with dvh units and let the inner content scroll.
Pin a large close button
Position it inside the modal with safe-area padding and a 44px target.
Add other ways to close
Close on overlay click and Escape, and label the button for screen readers.
.modal {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
}
.modal__box {
position: relative;
width: 100%;
max-width: 480px;
max-height: 90vh;
max-height: 90dvh;
overflow-y: auto;
background: #fff;
}
.modal__close {
position: absolute;
top: max(8px, env(safe-area-inset-top));
right: 8px;
width: 44px;
height: 44px;
font-size: 28px;
line-height: 1;
background: #fff;
color: #111;
border: 1px solid #ccc;
border-radius: 50%;
z-index: 2;
}<div class="modal" id="offer" role="dialog" aria-modal="true" aria-label="Special offer">
<div class="modal__box">
<button class="modal__close" type="button" aria-label="Close">×</button>
<!-- popup content -->
</div>
</div>
<script>
var m = document.getElementById('offer');
function closeModal() { m.style.display = 'none'; }
m.querySelector('.modal__close').addEventListener('click', closeModal);
m.addEventListener('click', function (e) { if (e.target === m) closeModal(); });
document.addEventListener('keydown', function (e) { if (e.key === 'Escape') closeModal(); });
</script>Before
- Popup taller than the screen
- X sits above the visible area
- Tapping outside does nothing
- Visitor leaves
After
- Popup capped to 90% of visible height
- X pinned in the corner, 44px wide
- Outside tap and Escape also close it
- Visitor continues to the form
How to confirm it's fixed
Retest the smallest screens
Use a 320px wide device view and a real small phone if you have one. The X must be visible without scrolling.
Test both orientations
Rotate to landscape, where the visible height is smallest.
Test in Safari on iPhone and Chrome on Android
Browser bars differ, and layout bugs often show in only one.
Complete the journey after closing
Close the popup, then submit your form or reach checkout to confirm the page works and scrolling is not locked.
How to prevent it happening again
- Preview every new popup on a small phone before it goes live
- Keep popup content short on mobile: one headline, one field, one button
- Re-test popups after theme, plugin or app updates
- Never rely on a single way to close; keep X, outside tap and Escape
- Avoid full-screen popups at page load on mobile
- Review popups from every tool, including those added through tag managers
How FunnelGuard handles this
FunnelGuard detects this issue only partly. Its robot visitor runs your journey on a mobile run and applies a check called cta_not_covered: it looks at whether the main call-to-action button can be reached or is covered by something on top of it, such as an overlay. If a popup that can't be dismissed sits over your button, that check can flag it, and you get one alert with a screenshot and a likely cause after a second-region re-check.
What it does not do: it does not specifically look for the X button, measure its size or position, or tell you that the X is off-screen on a particular phone model. A popup that covers nothing important, or one that is closable on the robot's screen size but not on a smaller phone, may pass.
The overlay sits over the page's main button, so a mobile visitor can't reach it.
Questions people ask
Why is the close button missing on my popup on mobile?
Usually the popup is taller than the phone's visible screen, so the X is pushed off the top or bottom. Other causes are CSS that hides the X on small screens, an X that is the same colour as the background, or a script that failed to load. Check in a 320px wide device view and a real phone.
How do I make a popup fit on a mobile screen?
Set a max-height of about 90dvh on the popup, let its content scroll inside with overflow-y: auto, and keep the X pinned in a corner. Also shorten the mobile content and shrink images. Test in portrait and landscape.
How big should a popup close button be on mobile?
Aim for a tap target of at least 44 by 44 CSS pixels, with strong contrast against the background. The icon itself can be smaller, as long as the tappable area is that size. Leave some space around it so it isn't tapped by accident.
Can I let visitors close a popup by tapping outside it?
Yes, and you should. Most popup tools have a close-on-overlay-click option, and in custom code you add a click handler on the overlay. Also support the Escape key. Multiple ways to close keep visitors from getting stuck if the X is hard to hit.
Does a popup without a close button hurt my ad results?
It can. Visitors who can't dismiss the popup leave without seeing your form or offer, so you pay for clicks that never convert. Because analytics may still record the visit, the problem can hide in a low conversion rate.
Why does my popup close button work on desktop but not on iPhone?
Safari on iPhone has a shorter visible area because of its address and toolbars, and 100vh includes space you can't see. A modal sized that way can push the X out of view. Use dvh units, add safe-area padding and test on a real iPhone.
Can FunnelGuard tell me if my popup's X button is missing?
Only partly. FunnelGuard's cta_not_covered check on a mobile run flags when your main button is covered, for example by a popup that can't be dismissed. It does not check the X button itself or test every phone size, so keep a manual check too.
Related issues
- CNV-112Popup covers the form or CTA and can't be closedFix guide
- CNV-118Modal opens behind overlay (z-index bug)Fix guide
- CNV-120Scroll locked after closing modalFix guide
- CNV-117Interstitial blocks content on mobile (Google penalty)Fix guide
- CNV-114Popup reappears on every pageFix guide
- CNV-115Exit-intent popup never firesFix guide