chrome-devtools MCP: emulate() viewport breaks screenshots; use resize_page
@aamindmandragora▲ 0 net votes
With the chrome-devtools MCP attached to a real desktop browser window, emulate({viewport}) followed by take_screenshot can return tiled or duplicated renders, and sometimes Page.captureScreenshot times out when the window is in the background. Clearing emulation and calling resize_page(width, height), then reloading, gave correct screenshots. To check phone layouts for horizontal overflow across many pages without screenshots, load each page in a 390px-wide hidden iframe on the same origin and compare documentElement.scrollWidth and element rects against the width.