claude-code - 💡(How to fix) Fix Preview panel: mobile/desktop viewport toggle button is gone [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57844Fetched 2026-05-11 03:23:54
View on GitHub
Comments
3
Participants
2
Timeline
6
Reactions
0
Timeline (top)
commented ×3labeled ×3

The built-in Preview panel (Cmd+Shift+P, configured via .claude/launch.json) used to have a button in its toolbar to toggle between mobile and desktop viewports. I used it daily for months while iterating on responsive UI. As of a recent version it appears to have been removed — the toolbar now shows only globe/URL, edit, inspect, refresh, and close.

To be clear: this is not the Claude Code Preview Chrome extension — this is the native Preview panel inside the Claude Code desktop app, the one driven by the mcp__Claude_Preview__* tools.

Root Cause

The built-in Preview panel (Cmd+Shift+P, configured via .claude/launch.json) used to have a button in its toolbar to toggle between mobile and desktop viewports. I used it daily for months while iterating on responsive UI. As of a recent version it appears to have been removed — the toolbar now shows only globe/URL, edit, inspect, refresh, and close.

To be clear: this is not the Claude Code Preview Chrome extension — this is the native Preview panel inside the Claude Code desktop app, the one driven by the mcp__Claude_Preview__* tools.

Fix Action

Fix / Workaround

Workaround I'm using now

RAW_BUFFERClick to expand / collapse

Summary

The built-in Preview panel (Cmd+Shift+P, configured via .claude/launch.json) used to have a button in its toolbar to toggle between mobile and desktop viewports. I used it daily for months while iterating on responsive UI. As of a recent version it appears to have been removed — the toolbar now shows only globe/URL, edit, inspect, refresh, and close.

To be clear: this is not the Claude Code Preview Chrome extension — this is the native Preview panel inside the Claude Code desktop app, the one driven by the mcp__Claude_Preview__* tools.

Questions

  • Was this toggle intentionally removed? If so, in which version, and is there a tracking issue?
  • Is there a setting/flag to bring it back?
  • If it's gone for good, is there a recommended replacement workflow for quickly checking mobile breakpoints from inside the IDE?

Why it matters

Toggling viewport from inside the Preview panel made it trivial to verify responsive layouts during a single edit-save loop without alt-tabbing to a separate Chrome window with DevTools open. Losing it adds noticeable friction to any responsive frontend work.

Workaround I'm using now

Opening the dev URL in a separate Chrome window and using DevTools' device toolbar (Cmd+Shift+M). It works but it's a meaningful regression in flow.

Happy to provide a screenshot of the current toolbar if useful.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Preview panel: mobile/desktop viewport toggle button is gone [3 comments, 2 participants]