Skip to content

Screenshot operation resets Device simulation mode (Mobile view) back to standard mode #280

Closed

Description

@bubenshchykov

Describe the bug
Screenshot operation resets Device simulation mode (Mobile view) back to Desktop. This is a blocker for mobile workflows, as you have to manually set Device simulation back to Mobile after each prompt that involves screenshots.

To Reproduce
Steps to reproduce the behavior:

  1. Open page, toggle Device simulation mode, select any dimension preset (e.g. Iphone 14 Pro Max)
  2. Run a prompt that involves taking a snapshot

Expected behavior
Selected device mode stays (Iphone 14 Pro Max in this example)

Actual behavior
Page layout is reset to regular Desktop mode
(Even though device mode still shows Iphone 14 Pro Max)

Chrome version:
Chrome: 141.0.7390.54 (Official Build) (arm64)
chrome-devtools-mcp: 0.5.1

Coding agent version:
Model version:
Cursor auto-model

Activity

  1. changed the title [-]Screenshot operation resets Device simulation mode (Mobile view) into Desktop[/-] [+]Screenshot operation resets Device simulation mode (Mobile view) back to standard mode[/+] on Oct 4, 2025
  2. sebastianbenz commented on Oct 6, 2025

    @sebastianbenz
    Collaborator

    You can instead let the LLM change the device emulation mode for you (which will stick), but you're right it'd be great if the MCP server does not change any existing emulation modes. @OrKoN would that be possible?

  3. OrKoN commented on Oct 7, 2025

    @OrKoN
    Collaborator

    We currently do not support device emulation via the MCP server. I think it would work better once the emulation is done via the same CDP session (i.e., via the MCP server). There could be other workaround but basically the issue is on the Chrome/CDP side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions