Xiaomi 15 / 14 viewport size
400 × 890CSS px · 3× DPR · 1200×2670 physical
The Xiaomi 15 / 14 gives web pages a 400 × 890 CSS pixel viewport in portrait. That’s the width your layout and media queries actually see, not the 1200 × 2670 physical pixels of the screen: with a device pixel ratio of 3, every CSS pixel is 3 × 3 real pixels.
See your site on a Xiaomi 15 / 14
Paste your address (or localhost:3000). doesitfit shows it at exactly 400 × 890, with Chrome (Android)’s bars if you want them, and tells you if anything spills.
Free, no sign-up. Or ask Claude, ChatGPT or Codex to check it.
What a web page actually sees
The full viewport is 400 × 890, but the browser’s own bars take some of it. In Chrome (Android) a page gets about 400 × 770 on first load (40px status bar, 56px Chrome toolbar and 24px gesture bar on first load). That’s your real “above the fold”. Use 100dvh instead of 100vh for full-height sections, or they’ll hide behind the toolbar (why).
| Setting | Width | Height |
|---|---|---|
| Full viewport (portrait) | 400px | 890px |
| Visible on first load (Chrome (Android)) | 400px | 770px |
| Landscape (full) | 890px | 400px |
What it means for your CSS
Breakpoints
At 400px: Tailwind uses base styles only (below sm, 640px); Bootstrap uses xs. In landscape (890px): Tailwind uses md (sm: md: styles apply), Bootstrap md.
Content width
With 16px of padding on each side your text column is 368px; with 24px it’s 352px. Text closer than 8px to the edge looks cramped (more).
Sharp images
A full-width image needs about 1200px of real pixels (400 × 3).
<img src="hero-1200.jpg" srcset="hero-800.jpg 800w, hero-1200.jpg 1200w" sizes="100vw" alt="…">
Styles for this width
Content-first breakpoints beat device lists, but if something breaks at this width:
@media (max-width: 400px) {
/* screens 400px wide and narrower */
}How common is 400 × 890?
400 × 890 isn’t in StatCounter’s top lists for Aug 2026 on its own, but nearby sizes behave the same way. See the most common screen sizes.
Close in size:
- iPhone 18 Pro 402×874
- iPhone 17 Pro 402×874
- iPhone 17 402×874
- iPhone 17e 390×844
- iPhone 16 Pro 402×874
- iPhone 16 393×852
- iPhone 16e 390×844
- iPhone 15 / 15 Pro 393×852
Everything about the 400 × 890 viewport · All OnePlus, Xiaomi & Motorola sizes
Questions people ask
What is the viewport size of the Xiaomi 15 / 14?
400 × 890 CSS pixels in portrait (890 × 400 in landscape), with a device pixel ratio of 3. The screen itself is 1200 × 2670 physical pixels.
How much of the Xiaomi 15 / 14 screen does a web page get in Chrome?
About 400 × 770 on first load: the 40px status bar, 56px Chrome toolbar and 24px gesture bar on first load. Design your first screen for that height, not the full 890px.
Which CSS breakpoint does the Xiaomi 15 / 14 fall into?
At 400px wide, Tailwind CSS uses base styles only (below sm, 640px) and Bootstrap uses its xs tier. In landscape (890px) Tailwind uses md (sm: md: styles apply).
How wide should images be for the Xiaomi 15 / 14?
A full-width image needs about 1200px of real pixels (400 CSS px × DPR 3) to look sharp. Use srcset so smaller screens don’t download it.
How can I test my website on a Xiaomi 15 / 14 without one?
Open doesitfit.lol, paste your address (localhost works too) and pick the Xiaomi 15 / 14. It shows your site at exactly 400 × 890 CSS pixels and flags anything that spills past the edge.
Guides that help
- 100vh on mobile is broken: use dvh, svh and lvh100vh hides your content behind Safari and Chrome toolbars on phones. Here's why, with real iPhone and Android numbers, and how dvh, svh and lvh fix it.Fixes · 8 min read
- How to fix horizontal scrolling on mobile (12 causes)Page wobbles sideways on phones? The 12 usual causes of horizontal scrolling on mobile, a fix for each, and a console snippet that finds the culprit fast.Fixes · 9 min read
- What is a viewport? CSS pixels vs screen resolutionA viewport is the area your page is laid out in, measured in CSS pixels, not screen pixels. See real numbers from iPhones and MacBooks, then check yours.Guides · 8 min read
About these numbers
Confidence: Estimate: not measured in a browser yet. Android Chrome rounds the CSS size up (ceil of pixels ÷ DPR).
Sources include DeviceAtlas, Chrome DevTools device list (EmulatedDevices.ts), iosref.com, ios-resolution.com. Researched September 2026.