On this page
What this issue is
Horizontal scroll on mobile means a visitor can drag your page left or right on a phone. The page content is wider than the screen (the "viewport"). Usually one element is the cause: an image with a fixed width, a table, an embed, a banner using width: 100vw, or a menu that sits off-screen.
Some phones also zoom out to fit the wide content, so text looks tiny. Either way, the page feels broken.
Why it costs you leads or sales
Most paid and social traffic lands on a phone. If the page slides sideways, visitors lose their place, tap the wrong thing or leave. A call-to-action button or form field pushed past the right edge may never be seen.
It also looks untrustworthy on a checkout or lead form, where people are deciding whether to share details or pay.
- Ad clickVisitor lands on phone
- Page loads wider than screenOne element overflows
- CTA or field off-screenVisitor does not see it
- Form submittedNo lead
A wide element pushes the CTA off-screen, so later steps never happen.
Example: illustrative numbers showing how an overflowing page could reduce mobile completions. Not real data.
How to check if your site has it
Test on a real phone
Open the page and try to drag it sideways. If the whole page moves, you have the issue. Check key pages: landing pages, forms, checkout.
Use device mode in Chrome
Press F12, then the device toolbar icon (Ctrl+Shift+M). Pick a small phone such as 360 px wide and look for a horizontal scrollbar at the bottom.
Find the wide element
In the Console, paste the snippet below. It lists elements that extend past the right edge of the screen.
Check the viewport tag
View the page source and confirm the head contains the viewport meta tag shown below.
const w = document.documentElement.clientWidth;
[...document.querySelectorAll('*')].filter(e => e.getBoundingClientRect().right > w + 1).forEach(e => console.log(e.getBoundingClientRect().right, e));<meta name="viewport" content="width=device-width, initial-scale=1">| Cause | What you see | Fix |
|---|---|---|
| Image or video with fixed pixel width | Media sticks out on the right | max-width: 100%; height: auto |
| width: 100vw on a full-width section | Small overflow where a scrollbar exists | Use width: 100% instead |
| Wide table or code block | Table runs past the edge | Wrap in a container with overflow-x: auto |
| Third-party embed or iframe | Widget wider than the screen | Set max-width: 100% on the iframe |
| Missing viewport tag | Page looks zoomed out | Add the meta tag |
| Off-canvas menu or animation | Hidden panel extends the page | Contain it with overflow hidden on its wrapper |
How to fix it
Fix the element, not the symptom. Adding overflow-x: hidden to the body can hide the scroll, but it may also clip content and can break sticky headers. Use it only as a last resort.
img, video, iframe, svg {
max-width: 100%;
height: auto;
}
.table-wrap {
overflow-x: auto;
}
.full-bleed {
width: 100%; /* not 100vw */
}Identify the block or widget
Use the DevTools snippet above to find the element, then locate it in the block editor or your page builder.
Set a flexible width
Replace fixed pixel widths with percentages or Auto in the builder's width settings, and check the mobile view in the editor's preview.
Add CSS if needed
Go to Appearance > Customize > Additional CSS (or the theme editor for block themes) and paste the safe defaults. A theme update can change the result, so retest.
Find the section
In Online Store > Themes > Customize, switch to the mobile preview and check each section for overflow.
Edit theme CSS
Open Edit code and add the safe defaults to your theme's main CSS file (the name varies by theme, for example base.css).
Check apps
Banners, pop-ups and review widgets from apps are common causes. Disable one at a time to find it.
Use the mobile breakpoints
Switch the Designer to Mobile portrait and select elements that extend past the canvas edge.
Replace fixed widths
Set width to a percentage or use max-width 100% and reduce margins or negative margins.
Check 100vw
Change any width set in vw units to 100%.
Open the mobile editor
Switch to the mobile view and drag elements back inside the page edges.
Resize or hide
Resize wide elements or hide them on mobile if they are not needed.
Check sections and blocks
Use the mobile preview in the editor to find the section that extends past the edge.
Add Custom CSS
Go to Website > Website Tools > Custom CSS and add the safe defaults. Fix embedded code blocks that set fixed widths.
Preview mobile
In the funnel or website builder, switch to the mobile preview and find the row, column or element that overflows.
Adjust width and padding
Reduce fixed widths, padding and margins on mobile, or add custom CSS in the page settings.
Add the viewport tag
Make sure the head contains the viewport meta tag.
Remove fixed widths
Search your CSS for fixed pixel widths and 100vw, and use max-width and percentages. Use
box-sizing: border-boxso padding does not add to the width.Last resort
If a decorative element must extend off-screen, wrap it in a container with
overflow: hiddenrather than hiding overflow on the whole body.
Before
- Page drags sideways
- CTA partly off-screen
- Fixed-width image or 100vw banner
After
- Page stays inside the screen
- CTA and form fully visible
- Flexible widths with max-width: 100%
How to confirm it's fixed
- No horizontal scrollbar in Chrome device mode at 320, 360 and 390 px wide
- The Console snippet lists no elements past the right edge
- The page cannot be dragged sideways on a real iPhone and a real Android phone
- CTA buttons and form fields are fully visible and tappable
- Cookie banners, pop-ups and chat widgets also fit the screen
- Key pages tested after the fix: landing pages, forms, checkout
How to prevent it happening again
- Test every new page and section in mobile view before publishing
- Avoid fixed pixel widths and 100vw on layout containers
- Retest after theme updates, new apps, pop-ups and embeds
- Wrap wide tables in a scrollable container
- Keep a short list of key pages and check them on a small phone after each release
How FunnelGuard handles this
FunnelGuard does not check for horizontal scroll yet. It is a possible future check, so today you would need to watch for it yourself.
What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and check each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a layout problem stops a button or form from working, the journey fails at that step and you get one alert with a screenshot and a likely cause, after a re-check from a second region. A page that merely wobbles sideways while everything still works would not be reported.
To watch for it today, use the console snippet and device mode above after every release, and test key pages on real phones. Browser testing tools and Google Search Console's mobile usability reports can also help. A free read-only audit and a free plan (1 site, 2 journeys, daily checks) are available if you want journey monitoring alongside.
Questions people ask
Why does my website scroll sideways on my phone?
At least one element is wider than the screen. Common causes are images or tables with fixed widths, a section set to 100vw, a third-party embed, or an off-screen menu. Use Chrome DevTools device mode to find it.
How do I find which element is causing horizontal scroll?
Open DevTools, switch to a phone size and run a console script that lists elements whose right edge is past the document width. You can also remove elements one at a time in the Elements panel until the sideways scroll disappears.
Is overflow-x: hidden a good fix for horizontal scroll?
Only as a last resort. It hides the scrollbar, but the wide element can still be clipped, and it can break sticky headers. Fix the width of the offending element instead.
Why does 100vw cause horizontal scroll?
100vw includes the width of a vertical scrollbar where one exists, so the element can be slightly wider than the visible area. Use width: 100% for layout containers to avoid the extra width.
Does horizontal scroll on mobile hurt conversions?
It can. Buttons and fields may be pushed off-screen, and the page looks unpolished on checkout and lead forms. How much it costs you depends on your traffic and page, so compare mobile conversion before and after the fix.
Do I need a viewport meta tag?
Yes. Without <meta name="viewport" content="width=device-width, initial-scale=1">, phones may render the page at desktop width and shrink it, which looks like a layout bug.
Does FunnelGuard detect horizontal scroll on mobile?
Not yet. It is a possible future check. FunnelGuard does run your key journeys on a schedule and alerts you when a step such as a form or button fails, but it does not report sideways scrolling by itself.
Related issues
- CNV-386Layout broken on small phonesFix guide
- CNV-391Tablet layout hides CTAFix guide
- CNV-384Submit button does nothing on iOS SafariFix guide
- CNV-390In-app browsers (Instagram/Facebook) break checkoutFix guide
- CNV-392Dark mode makes form text invisibleFix guide
- CNV-393Touch events not handled (hover-only menus)Fix guide