Skip to content

How to Test Your Website on Different Screen Sizes

How to test a website on phones, tablets and desktops: DevTools device mode, resizing, real devices and online previews, plus what to check at each size and which sizes matter most.

6 min readBy Admin

How to Test Your Website on Different Screen Sizes

Short answer: open your site in Chrome DevTools device mode (or Firefox's Responsive Design Mode), step through a phone, tablet and desktop width, and check navigation, images, text and tap targets at each one. Then confirm on at least one real phone. For a quick look without opening DevTools, paste a URL into our free Screen Resolution Simulator and switch between device presets.

Viewport vs resolution: which size are you testing?

A phone's screen resolution counts physical pixels. Its viewport is the width your CSS sees, in CSS pixels. They differ by the device pixel ratio (DPR). An iPhone 15 has a 2556 × 1179 pixel display, but with a DPR of 3 your page gets a viewport of 393 × 852 CSS pixels. Media queries such as @media (max-width: 600px) use the viewport, so that is the number to test.

One requirement makes all of this work: the page needs <meta name="viewport" content="width=device-width, initial-scale=1"> in its head. Without it, mobile browsers render the page at a desktop width and zoom out (MDN explains the tag).

Common screen sizes to test (November 2026)

These are the most used sizes worldwide in StatCounter's screen resolution stats for October 2026, the latest month available as of November 2026. StatCounter reports phones and tablets in CSS pixels, so they map straight to viewports.

Device typeSize (width × height)Share of that device type
Phone414 × 89612.7%
Phone360 × 8008.6%
Phone384 × 8327.2%
Phone390 × 8445.3%
Phone393 × 8734.4%
Tablet1280 × 800 / 800 × 12808.0% / 7.9%
Tablet768 × 10247.4%
Tablet820 × 11804.7%
Desktop1920 × 108027.8%
Desktop1536 × 8649.1%
Desktop1366 × 7687.5%
Desktop2560 × 14403.8%

Sources: StatCounter mobile, tablet and desktop stats, worldwide, October 2026. Shares change monthly and differ by country, so check your own analytics too.

1536 × 864 is a 1920 × 1080 laptop screen with Windows display scaling at 125%. Many laptop users see your site at that smaller width, so test it.

A practical minimum set: 360 (small Android), 390 to 414 (most iPhones and large Androids), 768 (tablet portrait), 1024 to 1280 (tablet landscape and small laptops), 1366 to 1536 (laptops) and 1920 (desktop). Also drag slowly through the widths between your breakpoints; layouts often break just above or below one.

Method 1: Chrome DevTools device mode

  1. Open the page in Chrome and press F12 (Cmd+Option+I on a Mac).
  2. Click the "Toggle device toolbar" icon, or press Ctrl+Shift+M (Cmd+Shift+M on a Mac).
  3. Pick a device from the Dimensions list, or choose Responsive and type a width.
  4. Use the rotate icon for landscape, and the Throttle list to simulate a slow mobile network and CPU.

Device mode also lets you set the device pixel ratio and switch between touch and mouse events. Google's own documentation calls it "a first-order approximation": your code still runs on a desktop CPU, so it can feel faster than a real phone. Firefox (Responsive Design Mode, Ctrl+Shift+M) and Safari (Develop menu → Enter Responsive Design Mode) have similar tools.

Method 2: resize the browser window

Dragging the window edge is the quickest way to find the exact width where something breaks. It is good for spotting overflow and awkward in-between layouts, but most desktop browsers will not shrink below roughly 400 to 500 pixels wide, so it cannot reach small phone widths.

Method 3: real phones and tablets

Nothing replaces a real device for touch, scrolling, the on-screen keyboard covering form fields, browser toolbars that resize the viewport, and real performance. Test on at least one iPhone (Safari) and one Android phone (Chrome). You can inspect a connected Android phone from desktop Chrome via remote debugging, and an iPhone from Safari on a Mac. Paid cloud device labs cover the models you do not own.

Method 4: an online preview tool

An online preview lets you or a client check a live URL at several sizes without opening DevTools. In our screen resolution simulator, you enter a URL, pick one of 11 presets (four phones, three tablets, four desktops) or type any width and height from 100 to 4,000 pixels, rotate it, and scale the preview to fit your screen.

How it loads the page matters, so here is what happens:

  • Our server first fetches the URL to see whether the site allows being shown inside a frame. Many large sites forbid it with X-Frame-Options or a Content-Security-Policy frame-ancestors rule.
  • If framing is allowed, the page loads live in a frame at exactly that width, so your CSS breakpoints apply and you can click and scroll.
  • If framing is blocked, our server renders a screenshot of the page at that viewport instead. You can see the layout, but you cannot interact with it.

What it cannot do: it does not change the browser's user agent, device pixel ratio or touch input, so sites that detect phones by user agent will still serve their desktop version. It only loads public URLs (no localhost or private network addresses), and pages that need a login may not show your session inside a frame. For those cases, use DevTools or a real device.

What to check at every screen size

AreaWhat to look for
BreakpointsThe layout switches cleanly at each media query, with no broken state just above or below it.
NavigationThe menu collapses into a working toggle; dropdowns open and close; the header does not cover content.
Horizontal scrollNone. A wide image, table, code block or fixed-width element usually causes it. max-width: 100% on media fixes most.
Images and videoThey scale without stretching; the right size is served (srcset); nothing important is cropped.
TextBody text is readable without zooming (around 16px); long words, URLs and headings do not overflow their box.
Tap targetsButtons and links are big enough and not crowded. WCAG 2.2 sets 24 × 24 CSS pixels as the minimum (level AA); 44 × 44 is the enhanced level.
FormsInputs fit the screen, use the right keyboard (email, number), and are not hidden behind the on-screen keyboard.
Fixed elementsCookie banners, chat widgets and sticky headers do not cover the content or the close button on small screens.

For a broader check, run the page through our mobile-friendly test, and use the website screenshot generator to save full-page captures at different widths for a client or a bug report.

FAQ

How do I test my website on different screen sizes for free?

Use the device mode built into Chrome, Firefox or Safari, plus any phone you own. An online preview is useful for quick checks and for sharing with people who do not use DevTools.

Can I simulate a screen size without DevTools?

Yes. Resize the window for wider sizes, or load the URL in the free screen simulator and choose a preset or custom width. Remember that a framed preview keeps your desktop browser's user agent.

What screen resolution should I design for?

Design mobile-first from about 360 pixels wide, then make sure the layout still works at 768, 1366 and 1920. Your own analytics are the best guide to which sizes your visitors actually use.

Why does a website not load in a screen size preview?

Usually because the site sends X-Frame-Options or a CSP frame-ancestors rule that forbids framing. Our tool falls back to a screenshot in that case; other preview sites may just show a blank frame.

Test at the sizes above each time you change a layout, and keep the resolution simulator bookmarked for quick checks of live pages.

Related Articles

Try Our Smart Tools

Put what you've learned into practice with our free AI, SEO and developer tools.