Skip to main content
Xiaomi · 2022 · Phone

Xiaomi 12 Pro

Full device reference for the Xiaomi 12 Pro, including viewport size, native resolution, pixel density, DPR, and supporting responsive-design details.

$200 – $350Android 12.0Released 20226.73 INCH
Compare Device

Quick summary

Viewport

412 x 915 PX

Resolution

1440 x 3200 PX

Density

515 PPI

DPR

3.5 XXXHDPI

Copy viewport or resolution below

Viewport

412 x 915 PX

Resolution

1440 x 3200 PX

Density

515 PPI

DPR

3.5 XXXHDPI

What this device means for responsive design

The Xiaomi 12 Pro uses a viewport of 412 x 915 PX, which makes it a key target for mobile layout testing. Designers and developers should rely on the viewport value for CSS breakpoints, while the native resolution and DPR help explain image sharpness and rendering density.

Example breakpoint

@media (max-width: 412px) {
  /* target layouts around Xiaomi 12 Pro width */
}

Display profile

Screen size6.73 INCH
Device density147 PPI
Pixel density515 PPI
Device pixel ratio3.5 XXXHDPI
Refresh rate120Hz LTPO AMOLED

Detailed specifications

A clean reference table for the most important device and display values.

BrandXiaomi
CategoryPhone
Release2022
Operating SystemAndroid 12.0
Screen Size6.73 INCH
Resolution1440 x 3200 PX
Viewport412 x 915 PX
Pixel Density515 PPI
Device Pixel Ratio3.5 XXXHDPI
Refresh Rate120Hz LTPO AMOLED
ProcessorSnapdragon 8 Gen 1
RAM12GB
Storage256GB
Battery4600 mAh
Water ResistanceNo
Retail Price$200 – $350

CSS Media Query

@media (min-width: 412px) and (max-width: 412px)

Responsive design notes

Use the viewport for layout decisions, the native resolution for asset planning, and the DPR when understanding how CSS pixels map to physical pixels.

Use viewport for CSS

Focus on 412 x 915 PX when planning breakpoints and layout widths.

Use resolution for assets

The native 1440 x 3200 PX resolution helps guide image export sizes and display sharpness.

Use DPR for scaling

A DPR of 3.5 XXXHDPI means this screen maps multiple physical pixels to one CSS pixel.

Frequently Asked Questions

What is the screen resolution of the Xiaomi 12 Pro?

The Xiaomi 12 Pro has a 1440 x 3200 PX screen resolution on a 6.73 INCH display, resulting in a pixel density of 515 PPI.

What is the CSS viewport size of the Xiaomi 12 Pro?

The Xiaomi 12 Pro has a CSS viewport of 412 x 915 PX. This is the value returned by window.innerWidth and window.innerHeight in JavaScript, and the value that CSS media queries respond to.

What CSS media query should I use for the Xiaomi 12 Pro?

To target the Xiaomi 12 Pro viewport, use: @media (max-width: 412px). For a mobile-first approach, this targets the device at and above its viewport width.

What is the pixel density (PPI) of the Xiaomi 12 Pro?

The Xiaomi 12 Pro has a pixel density of 515 PPI, which corresponds to a device pixel ratio (DPR) of 3.5. This means CSS pixels are scaled up to produce crisp, high-resolution rendering on the physical display.