Google · phone · 2022

Pixel 7 screen size

The 2022 Tensor G2 flagship refined the camera-bar look with a slightly smaller 6.3-inch panel. Web-wise it is identical to the Pixel 6: a 412x915 CSS viewport at 2.625, the most common Android profile in device labs.

CSS viewport
412 × 915
Physical pixels
1080 × 2400
Pixel ratio
2.625x
PPI
416
Screen size
6.3"

Media queries

Target this device (portrait)
@media only screen and (device-width: 412px) and (device-height: 915px) and (-webkit-device-pixel-ratio: 2.625) and (orientation: portrait) {
  /* styles */
}
Viewport width and up
@media (min-width: 412px) {
  /* styles */
}
Viewport width and down
@media (max-width: 412px) {
  /* styles */
}

Related devices