Google Pixel 2 viewport size
Google Pixel 2 (2017) lays web pages out at 412 × 732 CSS pixels with a pixel ratio of 2.625.
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 48 px at the bottom (navigation bar) are covered, leaving roughly 412 × 604 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 604 px.
Your screen vs the Google Pixel 2
Comparing with your browser window needs JavaScript. The Google Pixel 2 is 412 × 732 CSS px; check your own viewport.
Media queries that match the Google Pixel 2
| Media query | Portrait (412px) | Landscape (732px) |
|---|---|---|
(min-width: 360px) | matches | matches |
(min-width: 390px) | matches | matches |
(min-width: 414px) | no | matches |
(min-width: 480px) | no | matches |
(min-width: 600px) | no | matches |
(min-width: 768px) | no | no |
(min-width: 1024px) | no | no |
(min-resolution: 2dppx) | matches | |
(pointer: coarse) and (hover: none) | matches (touch screen) | |
/* Google Pixel 2, portrait */
@media (max-width: 412px) and (orientation: portrait) { … }
/* high-density screen (2.625×) */
@media (min-resolution: 2dppx) { … }
Rather than targeting one device, write fluid styles and add breakpoints where your layout needs them — the same CSS then works on the 4 other devices with the same width and hundreds of models with similar sizes.
Testing on the Google Pixel 2
Android phones render with Chromium, the engine behind Chrome. Pixel ratios like 2.625 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 Google Pixel 2 is one of the 54 devices in the free check.
Same viewport width
- Samsung Galaxy A51 / A71 — 412 × 915, 2.625×
- Google Pixel 6 / 7 / 8 — 412 × 915, 2.625×
- Google Pixel 9 / 9a / 10 — 412 × 924, 2.625×
- OnePlus 11 — 412 × 919, 2.625×
Similar phones
- Xiaomi 14 / 15 — 400 × 890, 3× (2023)
- Google Pixel 9 Pro — 427 × 952, 3× (2024)
- Xiaomi Redmi Note 11 / 12 / 13 — 393 × 873, 2.75× (2022)
- Xiaomi 13 — 393 × 873, 2.75× (2022)
- Google Pixel 4a / 5 — 393 × 851, 2.75× (2020)
All mobile viewport sizes → · Compare any two devices →
Frequently asked questions
What is the Google Pixel 2 viewport size?
412 × 732 CSS pixels in portrait and 732 × 412 in landscape, with a device pixel ratio of 2.625.
What is the Google Pixel 2 screen resolution?
1082 × 1922 physical pixels (the CSS viewport multiplied by the pixel ratio of 2.625).
How much of the screen does the browser take on the Google Pixel 2?
About 80 px at the top and 48 px at the bottom in portrait with Chrome on Android, so roughly 604 CSS px of the page is visible when it first opens.