VSCode Mobile Preview: Best Extensions to Preview Websites on Phone Screens (2026)
VSCode Mobile Preview: Best Extensions to Preview Websites on Phone Screens (2026)
Every web developer building mobile-responsive sites faces the same friction: you edit some CSS, then switch to Chrome and toggle device mode, check the result, switch back to VS Code, make another change, and repeat. It breaks your flow.
VSCode mobile preview extensions fix this by embedding a live mobile preview directly inside your editor. Edit your HTML/CSS, and watch it update in an iPhone or Android frame — without leaving VS Code.
This guide covers the best extensions available in 2026, how they work, and when to use each one.
Why Use a VS Code Mobile Preview Extension?
The Problem With Browser DevTools
Chrome DevTools' Device Mode is excellent but lives in the browser. Your workflow becomes:
- Edit in VS Code
- Switch to Chrome (Alt+Tab)
- Wait for browser to reload
- Check the mobile view
- Switch back to VS Code
- Repeat
With a VS Code extension, steps 1–3 collapse into "edit and watch it update."
What These Extensions Do
Mobile preview extensions typically:
- Open a panel inside VS Code with a mobile/tablet device frame
- Connect to your local dev server (
localhost:3000, etc.) - Live reload — update the preview as you save files
- Let you switch between different device sizes (iPhone 15, Samsung Galaxy, iPad, etc.)
Top VSCode Mobile Preview Extensions
1. Mobile Preview — Phone & Tablet Simulator
Extension ID: lirobi.phone-preview
Updated: January 6, 2026
Marketplace: Mobile Preview
The most popular and actively-maintained mobile preview extension. Shows your web app inside realistic device frames with live reload.
Features:
- iPhone, Android, and iPad device frames
- Live reload as you save files
- Auto-detects your running dev server URL
- Multiple device sizes available
- Works with any web framework (React, Vue, plain HTML, etc.)
How to use:
- Install the extension
- Start your dev server:
npm start/npm run dev - Open Command Palette:
Ctrl+Shift+P - Type and run: "Mobile Preview: Show"
- The panel opens with your app in a device frame
Good for: Daily use as your primary responsive design checking tool.
2. Flex Mobile Preview
Extension ID: lirobi.flex-mobile-preview (search "Flex Mobile Preview")
Updated: October 5, 2025
Marketplace: Flex Mobile Preview
A free, flexible alternative focused on custom resolution support.
Features:
- Preset resolutions for popular devices
- Custom width/height scaling
- Simple, lightweight
- No setup beyond entering your localhost URL
Best for: Developers who need more control over exact pixel dimensions beyond the standard device presets.
3. Mobile Live Preview
Extension ID: ElyannSoto.mobile-live-preview
Updated: March 31, 2025
A simpler extension that puts your website inside a mobile frame directly in VS Code.
Features:
- Mobile frame preview panel
- Live preview as you edit
- Lightweight and fast
Best for: Quick, lightweight mobile preview without extra configuration.
4. MobileView
GitHub: champ3oy/MobileView
An open-source extension that opens a responsive mobile view for testing apps and websites directly in VS Code.
Features:
- Responsive mobile view panel
- Works with local development servers
- Open source — can be customized
Best for: Developers who prefer open-source tools or want to contribute to the extension.
5. Responsive Viewer
Search "Responsive Viewer" in the VS Code Marketplace.
Features:
- Shows multiple responsive views simultaneously
- Switch between phone/tablet/desktop sizes in one panel
- Useful for checking breakpoints across multiple widths at once
Best for: Testing CSS breakpoints across many screen sizes simultaneously — desktop, tablet, and phone all visible at once.
How to Set Up Mobile Preview in VS Code (Step by Step)
Using Mobile Preview (lirobi.phone-preview) as the example:
Step 1: Install the Extension
Ctrl+P → ext install lirobi.phone-preview
Step 2: Start Your Development Server
In the VS Code integrated terminal:
# For a React/Next.js/Vite project:
npm run dev
# For plain HTML with live-server:
npx live-server
# For Express/Node:
node server.js
Note your local port (usually 3000, 5173, 8080, etc.)
Step 3: Open Mobile Preview
Ctrl+Shift+P → "Mobile Preview: Show"
If it doesn't auto-detect your server, enter the URL manually (e.g., http://localhost:3000).
Step 4: Choose Your Device
Most extensions provide a device selector dropdown: iPhone 15, Samsung Galaxy S24, iPad Pro, and others.
Step 5: Start Coding
Edit your CSS or HTML in the editor. The preview panel updates on save (usually with a short delay).
Comparison: Mobile Preview Extensions
| Extension | Live Reload | Device Frames | Multi-Device | Free | Last Updated |
|---|---|---|---|---|---|
| Mobile Preview | ✅ | ✅ iPhone/Android/iPad | ❌ | Freemium | Jan 2026 |
| Flex Mobile Preview | ✅ | Basic | ✅ Custom | ✅ | Oct 2025 |
| Mobile Live Preview | ✅ | ✅ | ❌ | ✅ | Mar 2025 |
| MobileView | ✅ | Basic | ❌ | ✅ | Varies |
| Responsive Viewer | ✅ | Multiple sizes | ✅ | Varies | Varies |
VS Code Mobile Preview vs. Chrome DevTools Device Mode
| Feature | VS Code Extension | Chrome DevTools |
|---|---|---|
| Stay in editor | ✅ | ❌ (browser switch) |
| Device frames | ✅ (realistic frames) | Basic |
| Network throttling | ❌ | ✅ |
| Touch simulation | Limited | ✅ |
| Sensor simulation | ❌ | ✅ (GPS, gyro) |
| Performance profiles | ❌ | ✅ |
| Multiple sizes simultaneously | Some extensions | ✅ |
Verdict: VS Code extensions win for rapid iteration during development. Chrome DevTools wins for thorough final testing with realistic conditions.
Best practice: Use both — extension for rapid iteration, Chrome DevTools for final verification.
What About Testing on Real Devices?
Preview extensions and Chrome DevTools are both simulations. For production readiness, always test on real devices — particularly for:
- Touch interactions (long-press, swipe, pinch-to-zoom)
- Performance on mid-range phones
- Safari-specific rendering issues (iOS)
- Android-specific rendering differences
Use services like BrowserStack or LambdaTest for cross-device testing without owning physical devices.
Quick Setup Workflow for Mobile-First Development in VS Code
1. Split your VS Code editor vertically:
- Left panel: HTML/CSS files
- Right panel: Mobile Preview (Chrome)
2. Enable Auto Save in VS Code settings:
File > Auto Save > afterDelay (500ms)
3. Run dev server in integrated terminal (bottom panel)
4. As you type CSS, watch the mobile preview update automatically
This setup eliminates nearly all context switching and is ideal for mobile-first CSS development.
Building VS Code from mobile? VSCode Mobile gives you AI chat and terminal access on your phone while you develop.
Install the extension, sign in with Google, enter your linking code, and click Connect. Your phone becomes your coding companion in under a minute.
Get started →
VSCodeMobile