How to browser-test a WordPress theme properly
Test a WordPress theme across browsers and devices with live reload, DevTools, real devices and automated Playwright checks, plus a short checklist.
At a glance
Browser testing means checking that a WordPress theme looks and works in the browsers and devices your visitors use. Combine a live-reload tool such as BrowserSync while you build, DevTools for quick checks, real devices for the final pass and an automated Playwright run for regressions. This guide includes commands, a ten-point checklist and a realistic-content test list.
Updated November 29, 2026 · For WordPress theme developers
- For theme developers who need dependable cross-browser results
- Tools BrowserSync, browser DevTools, real devices, Playwright
- Minimum browsers current Chrome, Firefox, Safari and Edge, plus Safari on iOS and Chrome on Android
- Content test with awkward content, not only the homepage
- Watch out Safari on iOS is the browser most often forgotten
- Help theme development includes cross-browser testing as standard
On this page
- What are the four ways to test?
- How do I get live reload across devices?
- What can browser DevTools do for me?
- Which browsers and devices should I cover?
- Can I automate cross-browser checks?
- What should I check on every browser?
- How do I test a theme with realistic content?
- Worked example: a menu that only breaks on one phone
- How often should I repeat all this, and what should I record?
- Which browsers behave differently?
- FAQ
Browser testing means checking that your theme looks and works correctly in the browsers and devices your visitors use. Combine a live-reload tool while you build, DevTools for quick checks, real devices for the final pass, and an automated cross-browser run for regressions.
What are the four ways to test?
| Method | Best for | Limit |
|---|---|---|
| BrowserSync | Live reload across devices while you build | Local or private network only |
| DevTools | Quick width, touch and network checks | Emulation, not real engines |
| Real devices | Touch, keyboards, scroll quirks, performance | Slower to set up |
| Playwright | Repeatable checks in Chromium, Firefox and WebKit | Does not judge visual polish |
How do I get live reload across devices?
BrowserSync serves your local site on a network address, reloads every connected browser when files change, and mirrors scrolling and clicks. You need Node.js and a local WordPress site, for example from Local, DDEV, wp-env or Docker. From your theme folder, run it without a global install:
npx browser-sync start --proxy "http://mysite.test" --files "**/*.css, **/*.js, **/*.php, **/*.json"Replace the proxy address with your local site's URL. BrowserSync prints a local address and an external one. Open the external address on your phone and tablet on the same Wi-Fi network.
If pages bounce to your original address, WordPress is redirecting to its configured Site Address. For a local project, set it for that environment in wp-config.php:
define( 'WP_HOME', 'http://mysite.test' );
define( 'WP_SITEURL', 'http://mysite.test' );Another approach is to use the BrowserSync address in your local settings only. Never copy these constants to production, and use BrowserSync on a private network only, since it exposes your development site to anyone who can reach the address.
What can browser DevTools do for me?
Chrome, Edge, Firefox and Safari all have device toolbars that resize the viewport and emulate touch and network conditions.
- Switch between phone, tablet and desktop widths, and drag through every width, not just presets. Layout bugs hide between breakpoints.
- Throttle the network to see a slow connection.
- Check the Console for JavaScript errors and the Network tab for failed requests.
- Use the Accessibility panel and Lighthouse for quick checks.
Emulation is not a real device. It will not reproduce Safari's behavior exactly, because Chrome's emulator still runs Chrome's engine.
Which browsers and devices should I cover?
Look at your own analytics first. A typical minimum is current Chrome, Firefox, Safari and Edge on desktop, Safari on iPhone and iPad, Chrome on Android, and one older or low-powered phone if your audience uses them. Safari on iOS is the browser developers most often forget and the one with the most surprising quirks, such as viewport height changes with the address bar and form zoom on small inputs. For devices you do not own, cloud services open your site in real browsers and phones; use a public staging address, not your local one.
Can I automate cross-browser checks?
Yes, and it is worth doing for a theme that will be maintained. Playwright drives Chromium, Firefox and WebKit (Safari's engine) from one script and can take screenshots.
// tests/home.spec.js
const { test, expect } = require( '@playwright/test' );
test( 'home page renders and menu opens', async ( { page } ) => {
await page.goto( 'https://staging.example.com/' );
await expect( page ).toHaveTitle( /./ );
await page.getByRole( 'button', { name: /menu/i } ).click();
await expect( page.getByRole( 'navigation' ) ).toBeVisible();
} );Run it with npx playwright test, which tests across the browsers set in its configuration. It catches broken menus, missing forms and JavaScript errors after each change, but not visual polish. Run it against staging, not production, and keep credentials out of the test files.
What should I check on every browser?
Navigation: dropdowns, mobile menu, keyboard focus and the skip link.
Layout at narrow, medium and wide widths, with long titles and no featured image.
Forms: labels, validation messages, focus states and mobile keyboards.
Images: sharpness, aspect ratios and lazy loading below the fold.
Fonts: fallback behavior while loading.
Search, 404 and archive pages, not only the homepage.
Print stylesheet, if your site needs one.
Keyboard-only use and a screen reader quick check.
Console: no red errors.
WooCommerce cart, checkout and account pages, if applicable.
How do I test a theme with realistic content?
Most layout bugs come from content, not browsers. Before testing, fill the site with awkward material:
- A post title that runs to three lines, and one single word.
- A post with no featured image, and one with a very tall or wide one.
- A long unbroken string such as a URL inside a paragraph, which can force horizontal scrolling.
- A table with many columns, an embedded video and a code block.
- A menu with many items and a second level of submenus.
- Right-to-left text or accented characters, if you serve other languages.
WordPress publishes a Theme Unit Test data file that contains much of this. Import it on a local or staging site and remove it before you go live.
Worked example: a menu that only breaks on one phone
A theme's mobile menu opens on every desktop browser and in Chrome's emulator, but on an iPhone the page behind it still scrolls and the close button sits under the address bar. The cause is a fixed-height rule using 100vh, which on iOS does not account for the browser toolbar. Using dynamic viewport units, such as 100dvh, with a 100vh fallback for older browsers, solves it. Emulation would never have shown this; a real phone did.
How often should I repeat all this, and what should I record?
Run the quick checks, console and two screen widths, after every change. Run the full list before each release and after any big update to WordPress, the theme framework or a major plugin. Write one automated test for each bug you fix so it cannot return unnoticed. Keep a short table of browser, version, device, what was tested and what was found, so the next developer knows what has been covered.
Pair this with the theme development checklist and the responsive design guide.
Which browsers behave differently?
| Browser or device | Why to test it |
|---|---|
| Chrome and Edge | Same engine family; check both for extension and font differences |
| Firefox | A separate engine; catches CSS and scrolling differences |
| Safari on desktop | WebKit quirks with flexbox, forms and fonts |
| Safari on iOS | Viewport height changes with the address bar, and zoom on small inputs |
| Chrome on Android | Real touch, keyboards and performance on mid-range phones |
Our theme development service includes cross-browser testing as standard.
Which browsers should I test a theme in?
At least current Chrome, Firefox, Safari and Edge on desktop, plus Safari on iOS and Chrome on Android. Your own analytics show which browsers your visitors really use.
Link to this answerDo I need real devices?
Emulation catches layout problems. Real devices catch touch behavior, keyboards, scrolling quirks and performance. Use both for important sites.
Link to this answerWhy does BrowserSync redirect to my main site?
WordPress redirects requests to the address stored in its Site Address setting. Point BrowserSync at the same address, or set the home and site URLs for your local environment.
Link to this answerHow do I find which devices matter for my site?
Open your analytics and sort visits by browser and device. Test the top few, plus Safari on iOS, which is often forgotten.
Link to this answerIs Chrome's device emulator enough for Safari?
No. Chrome's emulator still runs Chrome's engine, so it will not reproduce Safari's behavior exactly. Use a real iPhone, a cloud device service, or Playwright's WebKit.
Link to this answerIs BrowserSync safe to leave running?
Use it on a private network only, since it exposes your development site to anyone who can reach the address. Never copy local URL constants to production.
Link to this answerCan I automate cross-browser checks?
Yes. Playwright drives Chromium, Firefox and WebKit from one script and can take screenshots. Run it against staging, not production, and keep credentials out of the test files.
Link to this answerWhat content should I test a theme with?
Awkward content: a three-line title, a post with no featured image, a very tall or wide image, a long unbroken URL, a wide table, an embed, a deep menu and accented or right-to-left text.
Link to this answerWhat is the WordPress Theme Unit Test data?
A published file of sample content that covers many awkward cases. Import it on a local or staging site, and remove it before going live.
Link to this answerHow often should I repeat the tests?
Run quick checks, the console and two widths, after every change, and the full list before each release and after big updates to WordPress, the theme framework or a major plugin.
Link to this answerDo you test themes for clients?
Yes. Our theme development service includes cross-browser testing as standard, covering current desktop browsers, Safari on iOS and Chrome on Android, and automated checks where a theme will be maintained.
Link to this answerKeep reading
Want an engineer on it?
Tell us what is wrong in plain words. A person reads it, today.