Samsung Galaxy S20 & S21 viewport size
Samsung Galaxy S20 / S21 (2020) lays web pages out at 360 × 800 CSS pixels with a pixel ratio of 3.
Browser bars and the visible area
The viewport height is the whole screen, but Chrome on Android keeps part of it for its own interface. In portrait about 80 px at the top (status bar and address bar) and 16 px at the bottom (navigation bar) are covered, leaving roughly 360 × 704 CSS px for the page when it first opens. In landscape the bars take about 80 px.
That is why 100vh can be taller than what people see. Use 100svh for the smallest visible height, 100dvh for the current one, and keep the most important content and buttons within the first 704 px.
Your screen vs the Samsung Galaxy S20
Comparing with your browser window needs JavaScript. The Samsung Galaxy S20 is 360 × 800 CSS px; check your own viewport.
Media queries that match the Samsung Galaxy S20 & S21
| Media query | Portrait (360px) | Landscape (800px) |
|---|---|---|
(min-width: 360px) | matches | matches |
(min-width: 390px) | no | matches |
(min-width: 414px) | no | matches |
(min-width: 480px) | no | matches |
(min-width: 600px) | no | matches |
(min-width: 768px) | no | matches |
(min-width: 1024px) | no | no |
(min-resolution: 2dppx) | matches | |
(pointer: coarse) and (hover: none) | matches (touch screen) | |
/* Samsung Galaxy S20 / S21, portrait */
@media (max-width: 360px) and (orientation: portrait) { … }
/* high-density screen (3×) */
@media (min-resolution: 3dppx) { … }
Rather than targeting one device, write fluid styles and add breakpoints where your layout needs them — the same CSS then works on the 6 other devices with the same width and hundreds of models with similar sizes.
Testing on the Samsung Galaxy S20 & S21
Android phones render with Chromium, the engine behind Chrome. Pixel ratios like 3 mean thin borders and small images can look blurry or uneven — check them at the real ratio. See how to test a website on Android.
The Samsung Galaxy S20 / S21 is one of the 54 devices in the free check.
Same viewport width
- Samsung Galaxy S7 — 360 × 640, 3×
- Samsung Galaxy S8 / S9 — 360 × 740, 3×
- Samsung Galaxy S10 — 360 × 760, 3×
- Samsung Galaxy S22 / S23 / S24 / S25 — 360 × 780, 3×
- Galaxy Z Flip 5 / 6 — 360 × 880, 3×
- Huawei P30 / P40 — 360 × 780, 3×
Similar phones
- Galaxy Z Fold 5 (folded) — 344 × 882, 2.625× (2023)
- Samsung Galaxy S24 / S25 Ultra — 384 × 832, 2.813× (2024)
- Samsung Galaxy A15 / A54 / A55 — 384 × 832, 2.813× (2023)
- Xiaomi Redmi Note 11 / 12 / 13 — 393 × 873, 2.75× (2022)
- Xiaomi 13 — 393 × 873, 2.75× (2022)
Screen size comparisons
- Galaxy S21 vs Galaxy S22 — both 360 px wide, 800 vs 780 px tall
All mobile viewport sizes → · Compare any two devices →
Frequently asked questions
What is the Samsung Galaxy S20 & S21 viewport size?
360 × 800 CSS pixels in portrait and 800 × 360 in landscape, with a device pixel ratio of 3.
What is the Samsung Galaxy S20 & S21 screen resolution?
1080 × 2400 physical pixels (the CSS viewport multiplied by the pixel ratio of 3).
How much of the screen does the browser take on the Samsung Galaxy S20 & S21?
About 80 px at the top and 16 px at the bottom in portrait with Chrome on Android, so roughly 704 CSS px of the page is visible when it first opens.