Fix guides
Fix the layout bugs clients notice first
Short, practical fixes for the most common responsive problems, with code you can copy. Not sure what's wrong? Test your page free.
LayoutMost read · updated 2 Oct 2026
How to fix horizontal scroll on mobile
Your page slides sideways on phones? Find the element that is wider than the screen and fix it with five CSS changes that cover almost every case.
- Find the element that is too wide
- The five usual causes and their fixes
- Why overflow-x: hidden is not a fix
- Check every width, not just one phone
All guides
Start from what you see
What’s wrong on your phone, and which guide fixes it
Most mobile layout bugs come down to a handful of causes. Find the line that matches what you see, read the usual cause, and open the fix.
- 01What you seeThe page slides sideways, or there is a white strip on the rightThe usual causeSomething is wider than the screen: a fixed width, a wide image or table, a long word or link.The fix: Horizontal scroll on mobile
- 02What you seeWords or buttons are cut offThe usual causeA box with a fixed height or hidden overflow, while its text wraps onto more lines on a narrow screen.The fix: Text cut off on mobile
- 03What you seeText, pictures or buttons sit on top of each otherThe usual causeAbsolute positioning or negative margins that only worked at the width the page was designed for.The fix: Overlapping elements
- 04What you seeThe whole site looks like a shrunk desktop pageThe usual causeThe viewport meta tag is missing, so the phone draws the page at about 980px wide and zooms out.The fix: Viewport meta tag
- 05What you seeText is too small to read without zoomingThe usual causeFont sizes set for desktop and never raised on small screens.The fix: Font size on mobile
- 06What you seeLinks and buttons are hard to tapThe usual causeSmall targets packed close together, often in footers and menus.The fix: Tap targets too small
- 07What you seeThe header hides the heading you jumped toThe usual causeA sticky header with no matching scroll offset on the sections it links to.The fix: Header covering content
- 08What you seePictures are huge, blurry or slow to loadThe usual causeOne large file sent to every screen, or a picture stretched past its own size.The fix: Images too big on mobile
- 09What you seeForms zoom in, or the wrong keyboard opensThe usual causeFields under 16px make iPhones zoom; a missing input type gives the plain keyboard.The fix: Mobile form problems
- 10What you seeIt only breaks at certain widthsThe usual causeBreakpoints that jump straight from phone to desktop and skip the sizes in between.The fix: Choosing breakpoints
Why it happens
Why a page that looks right on desktop breaks on a phone
Designs are drawn at one width, phones come in many. A layout built and checked at 1440px meets screens from 360px to 430px wide on phones, and tablets in between. Anything with a fixed width, height or position only fits the screen it was made on.
Real content is longer than the design. Translated text, a long product name, a client’s headline that wraps to three lines: content that fit the mock-up pushes buttons out of their boxes or under the next section.
Small slips add up. One picture without max-width: 100%, one table without a scroll box, or a missing viewport tag is enough to make the whole page slide sideways. That’s why the guides start with the bug you can see and work back to the line of CSS behind it.
Questions
Do these fixes work on WordPress, Shopify, Webflow or React?
Yes. Every fix is plain CSS or HTML, so it works whatever built the page: add it to your theme’s custom CSS, your stylesheet or your component styles. WordPress and Shopify have their own guides for the problems that come from themes and page builders.
How do I find which element is causing the problem?
Each guide shows how to find it in your browser’s developer tools. Or run the free Mobile-Friendly Test or Responsive Design Checker: they name the element, the screen size it breaks at, and the CSS to change.
Do I still need to test on a real phone?
A browser set to a real phone’s screen size catches the layout bugs in these guides: overflow, cut-off text, overlaps, small text and tap targets. Things that depend on the device itself, such as the on-screen keyboard covering a field or how a swipe feels, are still worth a look on a real phone before launch.
Which bugs should I fix first?
The ones a visitor notices straight away: the page sliding sideways, text cut off and things overlapping. Then small text and tap targets, then pictures and forms. The pre-launch checklist puts them in order.
Or let UICheck find them for you
Free account, 5 checks a day, no card. Every finding comes with a plain-language fix.