How to Easily Fix “Content Wider Than Screen” Issues

Having to scroll sideways to read a page on your phone is the "content wider than screen" problem. Here is what causes it, how to find the element that sticks out now that Google's Mobile Usability report is gone, and the simple CSS fixes that solve it.

Published
December 10, 2024
Updated
November 16, 2026
Author
Ainal Haque
Content wider than screen: a phone outline with a blue block sticking out past its right edge, the off-screen part hatched, and an arrow marking the sideways scroll, in iExperto navy and sky blue

“Content wider than screen” means something on your page is wider than the phone’s screen, so visitors have to scroll sideways to see it all. To fix it, find the element that sticks out (usually a fixed-width box, a large image, a table or an embed), let it shrink with CSS such as max-width: 100%, and check the page at 320px wide in Chrome DevTools. Google retired the Search Console report that used to flag this issue in December 2023, so today you find it yourself.

Scrolling sideways to read a page on your phone is annoying, and most people don’t put up with it. They go back to the search results and pick another site.

That matters because about 60% of page views worldwide came from mobile devices in October 2026, according to StatCounter. If your layout breaks on a phone, a big share of your visitors only ever see the broken version.

So how do we get rid of this issue and solve it smartly?

The good news: this is one of the easier mobile problems to fix. It usually comes down to one or two elements that refuse to shrink, and a few lines of CSS sort them out.

Below, we explain what the error means, why it happens and why it’s worth fixing, then walk through six steps to find and fix it. Every site in our web design work is designed mobile first and tested on several screen sizes before launch, so these are checks we run all the time.

What does “content wider than screen” mean?

Every browser shows your page through a window called the viewport. On a phone, that window is only a few hundred CSS pixels wide.

“Content wider than screen” happens when something on the page is wider than that window. Picture a 600px-wide image on a phone screen that is 320px wide. The image doesn’t fit, so the browser makes the whole page 600px wide and lets you scroll sideways to see the rest. The text may fit perfectly, but one oversized element is enough to make the page slide around under your thumb.

Diagram: before, a 600px image in a 320px phone viewport sticks out past the right edge, so the page grows to 600px and slides sideways. After max-width: 100%, the image shrinks to fit and the page stays 320px wide.
One element wider than the viewport makes the whole page scroll sideways.

There’s a second version of the problem. If a page has no viewport meta tag, phone browsers lay it out on a wider virtual screen, then shrink it to fit. MDN gives the example of a 640px-wide phone rendering a page at 980px (MDN). The result is tiny text that people have to pinch, zoom and scroll around.

Why does this problem occur?

The cause is nearly always a part of the page with a set width, or a minimum width it won’t go below. These are the four reasons we see most often.

  1. Fixed-width design: Older websites were often designed for a desktop monitor, with widths set in pixels (for example width: 960px). Those boxes don’t shrink on a phone, so they spill over the side.
  2. Not using responsive design: A responsive site uses flexible layouts and media queries to rearrange itself for each screen. Without that, the desktop layout is squeezed onto a phone, and anything that can’t squeeze sticks out.
  3. Large images that aren’t responsively scaled: Even in a responsive layout, an image with a fixed pixel width, or with no rule keeping it inside its container, will push the page wider than the screen.
  4. Third-party plugins or embeds: Maps, videos, booking widgets and social feeds often arrive with their own fixed width, usually inside an iframe. One embed set to 600px wide is enough.

A few smaller causes are harder to spot:

  • Long words and URLs: A long link or email address has no spaces, so it can’t wrap.
  • Tables and code blocks: They keep their full width unless you give them their own scroll area.
  • Padding on a full-width box: By default, padding and borders are added on top of the width, so width: 100% plus padding ends up too wide. box-sizing: border-box keeps them inside (MDN).
  • Flex and grid items that won’t shrink: By default they won’t get narrower than their content, so one long word or wide image can stretch the whole row (MDN).

Why you should fix the “content wider than screen” error

For many visitors, the phone version of your site is the only version they will ever see: mobile devices are behind about 60% of page views worldwide. Here’s what a page that is wider than the screen costs you.

a. Visitors leave. Sideways scrolling makes reading slow, and the page slides around when you only meant to scroll down. Frustrated visitors rarely complain. They tap back. In Google Analytics 4 that shows up as bounce rate: the share of sessions that weren’t engaged, meaning visits of 10 seconds or less, with one page view and no key event (Google Analytics Help). A page that’s awkward on a phone pushes more visits into that group.

b. Fewer people buy or get in touch. Imagine trying to buy something when the “Add to cart” button sits off the edge of the screen, or filling in a form whose submit button you can’t see. When people can find what they need and act on it (call you, book a time, buy something) without fighting the layout, more of them do.

c. It works against your SEO. Google uses the mobile version of your pages, crawled by its smartphone crawler, for indexing and ranking (Google Search Central). It doesn’t hand out a specific penalty for this error, and it says there’s no single page experience signal: its core ranking systems look at a range of signals that line up with overall page experience (Google Search Central blog). A page that breaks on a phone works against you, and the fix is usually a few lines of CSS.

d. It looks careless. Your website is often the first impression people get of your business. A page that slides around on a phone looks careless. Fixing it shows mobile visitors you thought about them.

Easy steps to solve the “content wider than screen” error

Here’s the order we work in, from finding the problem to checking the fix.

Checklist of six fixes in order: find the element in device mode at 320px, add the viewport tag with width=device-width, use max-width instead of width, shrink images and embeds with max-width: 100%, let flex items shrink and wrap with min-width: 0 and flex-wrap, then test again at each breakpoint and on a real phone. Avoid hiding it with overflow-x: hidden on the body.
The six fixes in the order we work through them.

Tip one: Identify the root cause

First, find which pages have the problem and which element causes it.

Search Console’s Mobile Usability report used to list affected pages for you. Google retired it, along with the Mobile-Friendly Test and its API, on December 1, 2023 (Google Search Central blog). Now you check your main page templates yourself.

  1. Open the page in Chrome, open DevTools and turn on device mode with Ctrl+Shift+M (Cmd+Shift+M on a Mac) (Chrome DevTools).
  2. Set the width to 320px, the width the WCAG reflow guideline uses for content that shouldn’t need scrolling in two directions (W3C).
  3. Scroll down and try to drag the page sideways. If it moves, something is too wide.
  4. To see what, add a temporary rule, * { outline: 1px solid red; }, in the Styles pane. The box poking past the right edge stands out.

Firefox makes this even easier: its Inspector shows an “overflow” badge next to the element causing the overflow (Firefox DevTools).

Tip two: Use responsive web design

The lasting fix is responsive web design (RWD): a layout that adapts to any screen size. Google recommends it as the easiest pattern to build and maintain (Google Search Central).

Start with the viewport tag: every page needs <meta name="viewport" content="width=device-width"> in its head (many themes also add initial-scale=1, which is fine). Don’t add user-scalable=no, because blocking zoom makes pages harder to read for people with low vision (MDN).

Flexible widths: Cap widths instead of fixing them. Use max-width: 700px instead of width: 700px: the box is 700px on a desktop and shrinks on a phone. Be careful with 100vw. Viewport units are measured as if scrollbars didn’t exist (CSS specification), so on a desktop with a visible scrollbar, 100vw is wider than the page. Use width: 100% instead.

Media queries: Media queries apply different styles at different screen sizes. Build the phone layout first, add min-width media queries as the screen gets wider, and put breakpoints where your content starts to look cramped, not at one device’s width. Our guide to responsive web design best practices goes deeper.

Tip three: Adjust image scaling

Images are one of the most common causes. Add img { max-width: 100%; height: auto; } to your stylesheet. max-width: 100% lets an image shrink to fit its container but never grow past its own size, and it works for videos and iframes too (MDN). height: auto keeps the image in proportion when the HTML sets a fixed height.

For embeds such as maps and videos, use width: 100% and an aspect-ratio such as 16 / 9, so they scale and keep their shape (MDN).

A huge photo may fit after this fix, but a phone still downloads all of it, so resizing and compressing images is one of the first things we look at in website speed optimization.

Tip four: Flexbox CSS layout

Flexbox lines items up in a row or column and lets them grow and shrink to fit. Two settings matter here:

  • flex-wrap: wrap moves items onto a new line when the row runs out of room.
  • min-width: 0 on a flex item lets it shrink below the width of its content. In CSS Grid, minmax(0, 1fr) columns do the same job.

For long URLs, overflow-wrap: anywhere lets the browser break them where needed (MDN). Put wide tables and code blocks in a wrapper with overflow-x: auto, so only that box scrolls.

A quick patch, used carefully: Many guides suggest overflow-x: hidden on the body. It hides the symptom, cuts off whatever sticks out, and can stop sticky headers from working, because a sticky element attaches to the nearest ancestor with overflow: hidden (MDN). As a stopgap while you fix the real cause, overflow-x: clip on a wrapper hides the overflow without that side effect (MDN). Just make sure nothing people need to read or tap is hidden.

Tip five: Refine media query breakpoints

Breakpoints are the widths at which your layout changes. If an element only breaks at certain widths, a breakpoint is in the wrong place, or a desktop style is leaking into the phone layout.

In device mode, open the More options menu and turn on Show media queries. DevTools draws a bar for each breakpoint, and clicking one resizes the preview to that width (Chrome DevTools). Check that nothing sticks out between them.

Then run the page through PageSpeed Insights, which tests mobile and desktop versions with Lighthouse (Google for Developers). Look for “Optimize viewport for mobile”, which checks your viewport tag, and the touch target check under Accessibility.

Lighthouse won’t point at the element that’s too wide, though: its “Content is not sized correctly for the viewport” check went with the PWA category in Lighthouse 12, in April 2024 (Lighthouse release notes).

Tip six: Validate all fixes

Test again in device mode at 320px and at each breakpoint, then on a real phone, because device mode is only an approximation (Chrome DevTools). Try to drag the page sideways at the top, middle and bottom.

There’s no “Validate fix” button anymore. To see the page as Google does, use URL Inspection in Search Console and click Test live URL: a successful live test includes a screenshot of the rendered page (Search Console Help). You can then click Request indexing, though Google doesn’t promise the page will be indexed.

If the page fits at every width and on your phone, the issue is solved.

Some additional considerations to reduce the error

  1. Use a responsive theme that is easy to customize.
  2. Get expert advice before you start a redesign.
  3. Try changes on a staging copy first, then publish them to the live site.
  4. Check plugins, widgets and embeds on a phone before adding them.
  5. Recheck key pages on a phone after every theme or plugin update.

Some common FAQs

01. Why is this error bad?

Horizontal scrolling makes a page awkward to use on a phone. Visitors get frustrated, and many leave.

02. How can I identify if my website has this error?

Search Console’s Mobile Usability report used to flag it, but Google retired it in December 2023. Open the page in Chrome DevTools device mode at 320px wide and try to scroll sideways, then check on a real phone.

03. Do I need a developer to fix this error?

Basic fixes, such as max-width: 100% on images, need only a little CSS. If your theme uses fixed widths throughout, or a plugin you can’t edit causes the problem, a developer will save you time.

04. What happens if I don’t fix this error?

Your site stays harder to use on phones. That means fewer inquiries and sales from mobile visitors, and a page that works against you in Google, which ranks the mobile version.

05. Is Google’s Mobile-Friendly Test still available?

No. Google retired it on December 1, 2023, with its API and the Mobile Usability report, and pointed people to Lighthouse. For this error, Chrome DevTools device mode is the most direct check.

Final thoughts

The tips above fix most cases of “content wider than screen”: find the element that sticks out, let it shrink, and test at 320px. For the long term, responsive web design (RWD) lets your whole site adjust to any screen, so new pages, images and plugins fit from the start.

If you’d rather have someone find and fix it for you, our website maintenance services include ongoing checks of your site’s health and performance, so problems like this are caught before your visitors find them.