On this page
What this issue is
A popup (also called a modal or overlay) is a box that appears above the page: a newsletter signup, a discount offer, a cookie notice or a booking form. It normally has a close button, usually an X in a corner. On some phones that X ends up off-screen: above the top edge, past the right edge, or below the fold of a popup taller than the screen.
Why it costs you leads or sales
- Ad clickVisitor lands on mobile page
- Popup opensOverlay covers the page
- Close buttonX sits outside the screen
- Form or checkoutHidden behind the overlay
- ConversionNever happens
The visitor never gets past the popup, so the steps after it are lost.
Example: illustrative numbers showing how an unclosable popup can cut the share of mobile visitors who reach your form.
How to check if your site has it
List every popup
Include newsletter, discount, exit-intent, cookie, booking and chat-triggered overlays. Note how each one is triggered (time delay, scroll, button click).
Open each one on a real phone
Use both an iPhone and an Android phone if you can. Try portrait and landscape.
Look for the close button
Is the X fully visible, large enough to tap, and not cut off by an edge or the notch? Can you tap it without scrolling?
Try with the keyboard open
If the popup has an email field, tap it. The keyboard shrinks the visible area and often pushes the close button out of view.
Repeat in browser dev tools
In Chrome, open DevTools, switch on device mode (the phone and tablet icon) and test small sizes such as 320x568 and 360x640.
How to fix it
Open your popup plugin's mobile settings
Plugins such as Elementor Popups, Popup Maker or OptinMonster have size and position options. The exact menu names depend on the plugin.
Replace fixed sizes
Set width to a percentage or max width, and avoid a fixed pixel height. Use a maximum height related to the screen if the plugin offers it.
Move the close button inside
Choose a close-button position of inside the popup rather than outside the corner, and enlarge it for mobile.
Add custom CSS if needed
Paste the CSS shown below into the plugin's custom CSS field or Appearance > Customize > Additional CSS, changing the class name to match your popup.
Find where the popup comes from
It may be a theme section, or an app such as a pop-up or email app. Check Online Store > Themes > Customize, and your installed apps.
Use the app's mobile controls
Most apps have a separate mobile design view. Reduce content height and set the close button inside the popup.
Edit the theme CSS for theme popups
In Online Store > Themes > Edit code, open your main CSS file and add the CSS below with your popup's class.
Find popups injected by a tag
Check Custom HTML tags and templates in your container for popup code or a third-party widget.
Add a CSS fix in a Custom HTML tag
Wrap the CSS below in style tags in a Custom HTML tag that fires on All Pages, then test in Preview mode.
Prefer fixing the source
If the popup tool has its own mobile settings, change them there instead of patching with GTM.
Switch to the mobile breakpoints
In the Designer, select the popup wrapper and check Mobile portrait and Mobile landscape.
Set size and overflow
Set max height to 90vh (or 90dvh in custom CSS) and Overflow to Auto on the popup box. Remove fixed heights.
Reposition the close button
Set the close button to position Absolute inside the popup with small positive top and right values, not negative ones.
Open the popup in the builder
Go to the funnel or website builder and open the popup element settings.
Preview the mobile view
Switch to the mobile preview and reduce the popup's height, padding and image size until it fits.
Add custom CSS
Use the page's custom CSS area to add the CSS below, adjusting the selector to your popup's class or ID.
Edit the lightbox on mobile
In the Wix editor, open the lightbox and switch to mobile view.
Resize the content
Shrink the lightbox so it fits inside the mobile screen, and place the close button within it.
Check mobile separately
Mobile layouts in Wix are edited independently of desktop, so fixing desktop does not fix mobile.
Open the popup settings
Edit the page, then the promotional pop-up or the pop-up block, and use the mobile preview.
Shorten the content
Reduce text, image height and padding so the popup fits a small screen.
Add Custom CSS
Under Website > Custom CSS, add the CSS below with your popup's selector. Use your browser's inspector to find the class.
Constrain the modal to the viewport
Use max-height with dvh units and overflow-y: auto on the modal content.
Keep the close button inside the box
Use sticky or positive offsets and a tap target of at least 44x44 px.
Allow dismissal other ways
Close on Escape and on a tap outside the popup.
.popup {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
}
.popup__box {
position: relative;
width: 100%;
max-width: 480px;
max-height: 90vh;
max-height: 90dvh;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.popup__close {
position: sticky;
top: 8px;
float: right;
margin: 8px;
width: 44px;
height: 44px;
z-index: 2;
}Before
- Fixed 700px height, taller than the screen
- Close button at top: -15px, cut off
- No scrolling inside the popup
- Visitor leaves
After
- Max height 90% of the visible screen
- Close button inside the box, 44x44 px
- Content scrolls inside the popup
- Visitor closes it or completes the form
How to confirm it's fixed
- The close button is fully visible on a 320x568 screen without scrolling
- It stays visible with the on-screen keyboard open
- It works in portrait and landscape
- It can be tapped easily (about 44x44 px)
- Tapping outside the popup or pressing Escape also closes it where appropriate
- The page behind scrolls again after closing
- Tested on at least one real iPhone and one real Android phone
How to prevent it happening again
- Add popups to your pre-launch checklist and test each one on a phone
- Avoid fixed pixel heights and negative offsets for close buttons
- Re-test after plugin, theme or popup tool updates
- Keep popup content short so it fits small screens
- Limit how many popups can show on one page, and delay them on mobile
- Keep a list of popups and their triggers so none is forgotten
How FunnelGuard handles this
Questions people ask
Why is the close button on my popup not showing on mobile?
Usually the popup is taller or wider than the phone screen, or the X is placed with a negative offset outside the box, so it falls off an edge. Browser address bars and the on-screen keyboard shrink the visible area and make it worse. Cap the popup's height, let it scroll, and put the close button inside the box.
How do I make a popup fit on a mobile screen?
Use a percentage width with a max width, set max-height to 90dvh (with 90vh as a fallback) and add overflow-y: auto so long content scrolls inside the popup. Also reduce images and padding on small screens. Then test at 320 and 360 pixels wide.
Where should the close button go on a mobile popup?
Inside the popup, near the top corner, and kept visible even when content scrolls (for example with position: sticky). Make it at least about 44x44 pixels so it is easy to tap. Avoid placing it outside the box edge.
Why can't I close a popup on my phone?
If it is your own site, the close button may be off-screen or covered by another element. If it is someone else's, try scrolling inside the popup, rotating the phone, closing the keyboard, or using reader mode. As a site owner, test your popups on real phones so visitors are never stuck.
Do popups on mobile hurt conversions?
They can, especially when they cover the content straight away or can't be closed. A popup that is easy to dismiss and appears at a sensible moment is much less likely to cost you leads. Test the dismiss action as carefully as the offer.
Does FunnelGuard check if my popup close button is visible on mobile?
No. FunnelGuard does not check this yet, though it is a possible future check. It does run your real journeys on a schedule, so a popup that stops a step completing could show up as a failed journey, but it does not test the close button itself.
How can I test popups on different phone sizes?
Use a real iPhone and Android phone first. Then use Chrome DevTools device mode to try small sizes such as 320x568 and 360x640, in portrait and landscape. Open any popup with a form field to check the keyboard case too.
Related issues
- PRF-156CTA covered by cookie banner or popupFix guide
- PRF-169Mobile menu cannot be closed or scrolls page behindFix guide
- PRF-177Layout broken on small phones (320-360 px)Fix guide
- PRF-159Chat bubble covers the submit or checkout buttonFix guide
- PRF-158Fixed bottom bar covers form submit buttonFix guide
- PRF-154Horizontal scroll / content wider than viewport on mobileFix guide