Xiaomi 15
Full device reference for the Xiaomi 15, including viewport size, native resolution, pixel density, DPR, and supporting responsive-design details.
Quick summary
Viewport
400 x 890 PX
Resolution
1200 x 2670 PX
Density
460 PPI
DPR
3 XXHDPI
Viewport
400 x 890 PX
Resolution
1200 x 2670 PX
Density
460 PPI
DPR
3 XXHDPI
What this device means for responsive design
The Xiaomi 15 uses a viewport of 400 x 890 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: 400px) {
/* target layouts around Xiaomi 15 width */
}Display profile
Detailed specifications
A clean reference table for the most important device and display values.
CSS Media Query
@media (min-width: 400px) and (max-width: 400px)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 400 x 890 PX when planning breakpoints and layout widths.
Use resolution for assets
The native 1200 x 2670 PX resolution helps guide image export sizes and display sharpness.
Use DPR for scaling
A DPR of 3 XXHDPI means this screen maps multiple physical pixels to one CSS pixel.
From the Blog
What Is PPI and Why Does It Matter for Screens?
PPI is the single number that determines whether a screen looks razor-sharp or grainy. Learn how it is calculated and what it means for this device.
Read articleCSS Pixels vs Physical Pixels: The Complete Developer Guide
Your screen has millions of hardware dots. Your CSS has none of them. Learn how Device Pixel Ratio bridges the gap.
Read articleFrequently Asked Questions
What is the screen resolution of the Xiaomi 15?
The Xiaomi 15 has a 1200 x 2670 PX screen resolution on a 6.36 INCH display, resulting in a pixel density of 460 PPI.
What is the CSS viewport size of the Xiaomi 15?
The Xiaomi 15 has a CSS viewport of 400 x 890 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 15?
To target the Xiaomi 15 viewport, use: @media (max-width: 400px). For a mobile-first approach, this targets the device at and above its viewport width.
What is the pixel density (PPI) of the Xiaomi 15?
The Xiaomi 15 has a pixel density of 460 PPI, which corresponds to a device pixel ratio (DPR) of 3. This means CSS pixels are scaled up to produce crisp, high-resolution rendering on the physical display.