Skip to content
ScreenMetricLab Check screen

Content cluster guide

Screen Resolution vs Viewport Size

Learn why a CSS viewport can be smaller than the physical display resolution and which number matters for responsive design.

Updated 2026-06-26 5 min read

What screen resolution means

Screen resolution is the physical pixel grid reported by your device, such as 1920 × 1080, 2560 × 1440, or 1536 × 864. It is useful when checking screenshots, external displays, and operating-system display settings, but it is not always the value your website uses for layout.

What viewport size means

Viewport size is the live browser area available to CSS and JavaScript. A laptop can have a high physical resolution while the website sees a smaller CSS viewport because of browser width, zoom, OS scaling, device pixel ratio, or responsive testing mode.

Which value should developers use?

For responsive CSS, use viewport width and height first. Breakpoints, sticky elements, full-height sections, and layout bugs usually respond to viewport size. Screen resolution is still useful context, especially when reporting QA issues or comparing displays.

Best practice for QA reports

When reporting layout bugs, copy screen resolution, viewport size, DPR, browser, operating system, orientation, and zoom/scaling note together. This gives developers both the physical display context and the CSS layout context.

Quick comparison table

Use this table when deciding which value belongs in a design note, bug report, or responsive CSS test.

MetricWhat it tells youUse it for
Screen resolutionPhysical display pixel grid.Screenshots, monitor settings, display context.
Viewport sizeCSS area available to the page.Breakpoints, layout bugs, QA reproduction.
DPRPhysical pixels per CSS pixel.Sharp images, retina assets, scaling context.

Frequently asked questions

Why is my viewport smaller than my screen resolution?

The browser viewport excludes some browser UI and can also be affected by window size, zoom, operating-system scaling, and device pixel ratio.

Should media queries use screen resolution?

Most responsive layouts should use viewport-based media queries because CSS reacts to the available browser area.

Can two devices with the same resolution have different viewport sizes?

Yes. Different DPR, browser UI, OS scaling, orientation, and browser dimensions can create different viewport values.

What should I copy for a bug report?

Copy viewport, screen resolution, DPR, browser, OS, orientation, and the zoom/scaling note.