On this page
What this issue is
A visual regression is an unwanted change in how a page looks after you change something behind the scenes. The usual trigger is an update to your theme, a page builder, a form plugin or a caching plugin. The page still loads with no error, but something is off: a button is hidden, a form is squashed, fonts are wrong, or a section has gone.
Why it costs you leads or sales
Night 1
Auto-update installs a new theme version.
Day 1
The Book now button slips behind a banner. Ads keep sending traffic.
Day 3
Enquiries look lower, but nobody connects it to the update.
Day 6
Someone views the page on a phone and spots the problem.
Day 6
Update rolled back and layout restored.
Example: illustrative numbers showing submissions falling after an update hides a button and recovering after rollback.
How to check if your site has it
Note what changed and when
Check your update log (in WordPress: Dashboard > Updates, or your host's activity log; in Shopify: the theme's version history). Match the date to when the problem started.
Open your funnel pages in a private window
Use a private or incognito window so your logged-in view and cached files do not hide the problem. Check the landing page, form, checkout and thank-you page.
Test desktop and mobile
In Chrome, press F12 and use the device toolbar to view a phone size. Many regressions only show on small screens.
Click and submit everything
Click each button, open menus, fill in and submit the form. A button that looks fine can still be covered by another element.
Check the browser console
In developer tools, open the Console tab and look for red errors, such as a script that failed to load after the update.
Compare with a known good version
Open a staging copy, a backup or the Wayback Machine capture and compare side by side.
After the update
- Call-to-action button hidden or overlapped
- Form fields stacked wrongly or cut off
- Fonts and colours fall back to defaults
- Mobile menu does not open
After rollback or fix
- Button visible and clickable
- Form laid out as designed
- Brand fonts and colours back
- Menu works on mobile
How to fix it
Restore a backup or roll back
Restore a backup taken before the update from your host or backup plugin. Or install the previous plugin version from the plugin's Advanced view, or from a rollback plugin such as WP Rollback.
Clear every cache
Purge your caching plugin, any CDN cache and the host cache. Old CSS files often cause a broken look on their own.
Find the conflict on staging
On a staging copy, switch to a default theme and deactivate plugins one by one until the layout returns. The last one you switched off is the culprit.
Check child theme overrides
If you use a child theme, compare its template files with the parent theme's new versions. Outdated overrides are a common cause.
Revert to the previous theme version
In Online Store > Themes, open the theme's menu and look for older versions, or publish a saved duplicate of the working theme.
Check app embeds
In the theme editor, open App embeds and switch recently updated apps off one by one to find the one that changes your layout.
Re-apply custom code
If you updated the theme, custom edits in Liquid or CSS may have been lost. Re-add them from your duplicate.
Restore a previous backup
In Site settings > Backups, restore the version from before the change, or use Publishing history.
Check custom code and apps
Review custom code in Site settings and in page settings. Third-party embeds may have changed their own code.
Use Site History
In the dashboard, open Site History and restore a version from before the problem.
Review recently changed apps
Remove or reconfigure any app added or updated around that date.
Check Custom CSS and code injection
Open Website > Custom CSS and Settings > Advanced > Code Injection. Platform changes can make old rules clash with new ones.
Compare with a duplicate page
Duplicate the page, remove added blocks and code, and re-add them one at a time to find the cause.
Check custom CSS and code blocks
Open the funnel or website page settings and review custom CSS, custom JS and code blocks for anything that targets elements that changed.
Restore from page history
If your account shows page versions, revert to one from before the problem, or clone a known good page.
Check recent container changes
If a tag injects HTML or CSS, open Versions and compare the live version with the previous one. Roll back by publishing the older version.
Pause custom HTML tags
Use Preview mode and disable custom HTML tags that edit page elements, then retest.
Revert with version control
Use git to find the commit or dependency bump that changed the look, and revert it. Check lock files for upgraded packages.
Inspect the changed element
In browser developer tools, use Inspect on the broken element and look at which CSS rule is applied or overridden.
How to confirm it's fixed
- Hard refresh the page and test in a private window after clearing caches
- Check desktop, tablet and phone widths
- Click every button and open every menu in the funnel
- Submit a test form and confirm the email or CRM entry arrives
- Check the console shows no new red errors
- Compare against your known good screenshot
How to prevent it happening again
- Test updates on a staging copy before applying them live
- Turn off auto-updates for themes and page builder plugins on key funnel sites, and update on a schedule you choose
- Take a backup right before every update
- Save reference screenshots of your landing page, form and checkout on desktop and mobile
- Keep custom CSS minimal and documented so you know what may break
- Update one thing at a time so you know what caused a change
- Keep a manual post-update check of your top funnel pages
How FunnelGuard handles this
- Ad clickVisitor lands on the page
- Theme updateCSS now covers the button
- Form submitCannot be reached
- Lead in CRMNever created
The update hides the button, so later steps never happen.
Questions people ask
Why does my website look broken after a theme update?
The new theme version probably changed its CSS or HTML, so your custom styles, child theme files or plugins no longer match. Clear all caches first, then roll back to the previous version and test the update on a staging copy to find the conflict.
How do I undo a plugin update that broke my site?
Restore a backup taken before the update, or install the previous plugin version. In WordPress you can use a rollback plugin such as WP Rollback. Clear your caches afterwards, because old files can make the page look broken even after a rollback.
What is a visual regression?
A visual regression is an unintended change in how a page looks or behaves after a code, theme or plugin change. The page still loads, but elements may be misplaced, hidden or unstyled.
How can I tell which plugin broke my layout?
On a staging copy, switch to a default theme and deactivate plugins one at a time, checking the page after each. The plugin whose deactivation restores the layout is the cause or is clashing with another one.
Should I turn off automatic updates for themes and plugins?
On pages that earn leads or sales, it is safer to turn them off and update on your own schedule after testing on staging. Keep security updates in mind and apply them promptly once you have checked the key pages.
Can FunnelGuard detect a visual regression after an update?
Only partly. FunnelGuard checks for changes in page structure (DOM) but does not compare screenshots. It will catch failures that follow, such as a button it cannot click, a form that will not submit or tracking that stops, so keep a manual visual check too.
Why does my page only look broken on mobile after an update?
Updates often change responsive CSS rules that apply at small screen widths. Use the device toolbar in your browser developer tools to view a phone size and inspect which rule changed on the broken element.
Related issues
- PRF-373Overlapping elements or textFix guide
- PRF-376Unstyled flash on load (FOUC)Fix guide
- PRF-382Form elements unstyled (browser defaults) after CSS failureFix guide
- PRF-385Screenshot of the funnel step looks different from expectedFix guide
- PRF-380Empty white screen (JS crash)Fix guide
- PRF-379Blank page with only header and footerFix guide