WordPress fix guide
How to fix a fixed-width layout on WordPress
If your WordPress site shows up on a phone as a tiny desktop page that visitors must pinch and zoom, the layout is fixed width. WordPress does not cause this by itself, so the fix is finding which part of your setup does.
A fixed-width layout is built to be a set number of pixels wide (often 960 or 1000), so a phone just shrinks the whole page to fit. Text becomes tiny and visitors have to zoom and drag. WordPress core does not force this. It comes from an old theme, a page builder setting, custom code, or a missing viewport tag. The general explanation is in the fixed-width layout guide; this page covers where to look inside WordPress.
How to confirm the problem
Open your site on a real phone. If you see the full desktop page made small, it is a fixed-width layout. If the page looks normal but one part sticks out and lets you scroll sideways, that is a different issue: see horizontal scroll on mobile.
You can also test on a computer. In Chrome or Edge, press F12, then Ctrl+Shift+M (Cmd+Shift+M on Mac) to open the device toolbar and pick a phone size. If the content does not reflow to fit, the layout is fixed.
The usual causes in WordPress
- An old or abandoned theme built before phones mattered. Themes from roughly the early 2010s are the most common culprit.
- A theme or page builder that has responsive features switched off or overridden.
- Custom CSS with fixed pixel widths, for example
width: 960pxon a wrapper. - Custom HTML blocks, embedded tables or iframes with hard-coded widths.
- A missing viewport tag in the page head. See missing viewport meta tag for that one.
Step by step
- Make a backup. Use your host's backup tool or a backup plugin such as UpdraftPlus. You want a way back before you change a theme or CSS.
- Work on a staging copy if you can. Many hosts offer a one-click staging site in their control panel. The WP Staging plugin is another option. If you have neither, make changes outside busy hours.
- Check your theme. Go to
Appearance > Themesand look at the active theme's name and version. Search its name to see if it is still updated and described as responsive. Update it if an update is waiting (Dashboard > Updates).
- Check for custom CSS. Go to
Appearance > Customize > Additional CSS(classic themes), or open the Site Editor atAppearance > Editorand look in Styles for custom CSS (block themes). Search forwidth:values in pixels on wrappers, containers and the main content area. Change them like this:
/* Before */
.site-content { width: 960px; }
/* After */
.site-content { width: 100%; max-width: 960px; }
This keeps the same look on desktop but lets the box shrink on a phone. Also make sure images can shrink:
img { max-width: 100%; height: auto; }
- Check your page builder. If you use Elementor, Divi, Beaver Builder or similar, open a page and switch to its mobile or tablet preview (usually small device icons at the bottom or top of the editor). Look for sections set to a fixed pixel width, and for columns that refuse to stack. Set widths to percentages or "full width", and set column stacking for mobile. Exact names depend on the builder and version.
- Fix hard-coded widths in content. Open pages with Custom HTML blocks, tables or embedded iframes and look for
width="800"orstyle="width:800px". Replace with100%or remove the fixed value. Wide tables may need a scrolling wrapper or a simpler layout on phones.
- Replace the theme if it is the cause. If the theme has no responsive support and cannot be updated, the honest fix is a new theme. Modern block themes such as Twenty Twenty-Five, or well-maintained themes like Astra or GeneratePress, are responsive by default. Switching themes can change your design, widgets and menus, so test on staging first and expect some rework. A developer can help here.
- Use a child theme for code edits. If you edit theme files, do it in a child theme so a theme update does not erase your work. Avoid editing files directly in the live theme.
- Clear caches. Clear any caching plugin, your host's cache and any CDN cache, then test again on your phone in a private tab.
Test properly afterwards
Check the home page, a blog post, a contact page and your checkout or booking page if you have one. Look for text you can read without zooming, no sideways scrolling, and buttons you can tap. Fixing the layout often reveals smaller problems like tap targets that are too small.
Finding it early
SiteMonday's week 5 mobile usability test (details here) checks how your site behaves on a phone and puts what it finds in a ranked fix list. It finds and explains the problem; making the changes is up to you or your developer.
When to get help
If your design relies on a heavily customized old theme, or the layout is built from many nested fixed-width tables, a patch may take longer than a rebuild on a modern theme. A developer can tell you which is cheaper.
Not on WordPress? Read the general guide to fixed-width layout not responsive, or the guide for Joomla, Drupal, Magento, Wix, Squarespace, BigCommerce.
Questions
Does WordPress make my site responsive automatically?
No. WordPress core does not control your layout. Whether the site is responsive depends on your theme, page builder and any custom code.
Can I fix this with a plugin?
Some plugins add a mobile layout, but they are usually a patch over an outdated theme and can break your design. Updating or replacing the theme, or fixing the widths in your CSS or builder, is the more reliable fix.
Will changing my theme delete my content?
Posts, pages and media stay in place, but the design, widgets, menus and some theme-specific settings can change. Take a backup and test on a staging copy first.
Why does my site look fine in Elementor's mobile preview but wrong on my phone?
Caching is a common cause, so clear your caching plugin, host cache and CDN. Custom CSS or a Custom HTML block outside the builder's controls can also override the builder's mobile settings.
Where do I add CSS in WordPress safely?
On classic themes use `Appearance > Customize > Additional CSS`. On block themes use the Site Editor's Styles section, and keep a backup of your CSS somewhere outside WordPress.