Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Popup close button missing on mobile: how to find and fix it

CNV-113High impactPartlyBy FunnelGuardPublished Updated
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.

Where the visitor gets stuck
  1. Visitor lands on mobileAd or search click
  2. Popup opensTaller than the screen
  3. Close (X) not reachableOff-screen, tiny or hidden
  4. Page content blockedForm and buttons under the overlay
  5. 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.

Mobile form submissions by popup behaviourExample numbers
Mobile form submissions by popup behaviour (example)Popup closes easily: 30 submissions per 1,000 mobile visits; X off-screen on small phones: 18 submissions per 1,000 mobile visits; X missing on all phones: 4 submissions per 1,000 mobile visits0122330184Popup closes easilyX off-screen on small…X missing on all phon…submissions per 1,000 mobile visits

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.

Manual check for a missing close button
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Check every popup type

    Newsletter, discount, cookie banner, chat prompt and exit offers can each come from different tools with different settings.

What a good mobile close button looks like
  • 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.

Fix by platform
  1. Find which plugin makes the popup

    Common ones are Popup Maker, Elementor Popups, OptinMonster and Convert Pro. Check Plugins in the dashboard.

  2. 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.

  3. 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.

  4. 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.

Example CSS: keep the modal on screen and the X reachablecss
.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;
}
Example markup with a labelled close buttonhtml
<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">&times;</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>
Popup on a small phone

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

Confirm the fix
  1. 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.

  2. Test both orientations

    Rotate to landscape, where the visible height is smallest.

  3. Test in Safari on iPhone and Chrome on Android

    Browser bars differ, and layout bugs often show in only one.

  4. 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

Prevention checklist
  • 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.

A popup covers the button and can't be closed

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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: cta_not_covered on mobile run.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.