Characteristics of the Xiaomi 12 2022

Viewport resolution (CSS rules)

It is the resolution that interests designers and developers the most because it determines the breakpoints and the definition of media queries. In general we only talk about this resolution.
For the Xiaomi 12 2022 it is :

  • 360 pixels width
  • 800 pixels height ⚠️ the height is indicative because the Safari browser, Chrome, etc. reduce the visible area

ℹ️ Some analytics tools only display the manufacturer resolution (below) and not the one presented above, so be careful when interpreting the results.


Available in the simulator

Test your site now on this device Xiaomi 12 2022 using the browser extension.
It's free and can be activated in 2 clicks.

Install the extension

Pixel density

On the Xiaomi 12 2022 it is 3

If you want to target devices with at least this pixel density in CSS, you can use this media query.

                        
                            @media only screen and (-webkit-min-device-pixel-ratio: 3) {
    /* CSS */
}

Also in javascript, it is possible to retrieve the value of the pixel density.

                        
                            window.devicePixelRatio
// Which will return the figure 3

Manufacturer resolution Xiaomi 12 2022

Given the pixel density this gives:

  • 1080 pixels width
  • 2400 pixels height

Free HQ mockup PNG format

Free HD mockup of Xiaomi 12 2022 in PNG and PSD image format with transparent background
Mockup Xiaomi 12 2022 HD transparent PNG Resolution 770 ✕ 1670px (39.41 ko)