Phone · Android
Pixel 8 viewport size
The Pixel 8 has a viewport of 412 × 915 CSS pixels and a device pixel ratio of 2.625, which makes about 1082 × 2402 physical pixels.
Viewport (portrait)
412 × 915
Landscape
915 × 412
Device pixel ratio
2.625
Screen resolution
1082 × 2402
Screenshot a website on the Pixel 8
CSS for the Pixel 8
Target this screen size in CSS (portrait):
@media (max-width: 412px) {
/* Pixel 8 and smaller */
}
@media (min-resolution: 2.625dppx) {
/* high-density screens: serve sharper images */
}Design for ranges, not single devices: many phones share the same viewport width (for example 412 px). The Pixel 7, Pixel 8a, Pixel 9 and Pixel 10 use it too.
User agent
The user agent Chrome DevTools uses when it emulates the Pixel 8:
Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<version> Mobile Safari/537.36Chrome inserts its own version number for <version>.
Test your site on the Pixel 8
In Chrome, open DevTools (F12), turn on device mode (Ctrl+Shift+M or ⌘+Shift+M) and pick the device from the Dimensions menu, or use the screenshot tool above to capture any page at this size.
Data from the device list built into Chrome DevTools (devtools-frontend, BSD license).
Frequently asked questions
What is the viewport size of the Pixel 8?
What is the screen resolution of the Pixel 8?
Why is the viewport smaller than the screen resolution?
Other devices
Screenshot API
Take screenshots from your code
screenshotbase renders any website in a real browser and returns the image: full page or viewport, any device size, retina, from 100+ countries, with cookie banners and ads hidden.
Read the docs300 free screenshots every month. No credit card required.
GET https://api.screenshotbase.com/v1/take?url=https://example.com&viewport_width=412&viewport_height=915&device_scale_factor=2.625
# Response: the image (PNG, JPG, WebP or GIF)
curl -G "https://api.screenshotbase.com/v1/take" \
--data-urlencode "url=https://example.com" \
-d viewport_width=1280 -d viewport_height=800 \
-d format=png \
-H "apikey: YOUR-API-KEY" \
-o screenshot.png