# Xiaomi 15 Simulator: screen size 400×890, DPR 3

> Test responsive layouts at Xiaomi 15 screen size: 400×890 CSS px, pixel ratio 3. Free mobile simulator preset from iHateBugs.

Canonical: https://ihatebugs.dev/devices/xiaomi-15
Last updated: 2026-10-17

The Xiaomi 15 preset uses a 400×890 CSS pixel viewport (portrait) at a 3× device pixel ratio, so the screen draws 1200×2670 physical pixels.

Test it free in the [Mobile Simulator](https://ihatebugs.dev/mobile-simulator).

Specs pending verification. The resolution comes from the maker or Chrome DevTools, but the viewport and pixel ratio have not been published by the maker or measured on the device.

## Specs

| Field | Value |
| --- | --- |
| Brand | Xiaomi |
| Type | Phone |
| OS | Android |
| Released | March 2025 |
| Viewport (CSS px, portrait) | 400×890 |
| Pixel ratio (DPR) | 3 |
| Physical resolution | 1200×2670 |
| Touch | Yes |
| User agent | Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Mobile Safari/537.36 |
| Specs verified | Pending verification |
| Sources | [mi.com](https://www.mi.com/global/product/xiaomi-15/specs/), [mi.com](https://www.mi.com/global/certification/compliance/) |

## Similar sizes

- [iPhone 18 Pro](https://ihatebugs.dev/devices/iphone-18-pro): Apple, 402×874 CSS px viewport, released September 2026
- [iPhone 17](https://ihatebugs.dev/devices/iphone-17): Apple, 402×874 CSS px viewport, released September 2025
- [iPhone 17 Pro](https://ihatebugs.dev/devices/iphone-17-pro): Apple, 402×874 CSS px viewport, released September 2025
- [iPhone 16 Pro](https://ihatebugs.dev/devices/iphone-16-pro): Apple, 402×874 CSS px viewport, released September 2024

## CSS media query

```css
@media (max-width: 400px) {
  /* styles for Xiaomi 15 and narrower screens */
}
```

## FAQ

### What is the Xiaomi 15 viewport size?

400×890 CSS pixels in portrait, which is what CSS media queries see. With a device pixel ratio of 3, that is 1200×2670 physical pixels.

### Which devices have the same viewport as the Xiaomi 15?

None of the other presets share the 400×890 viewport, so it is worth testing on its own.

### How do I test my site at Xiaomi 15 size?

Open the free iHateBugs Mobile Simulator on your page and pick Xiaomi 15. The page renders at 400×890 CSS pixels, and it works on localhost too. In CSS, @media (max-width: 400px) matches this width and anything narrower.
