Describe the bug
On wordpress.com we use stylesheets loaded from s0.wp.com, s1.wp.com for various plugins such as full-site-editing.
When we install the gutenberg plugin and use the mobile preview, some of the css still behaves as if in desktop mode, so we see columns on mobile preview etc.

To reproduce
Steps to reproduce the behavior:
- Install a plugin that loads styles from an external domain with mobile breakpoints (tested with the
full-site-editing plugin)
- Open the gutenberg editor and attempt to mobile preview
Expected behavior
The columns should be stacked for mobile display. Preview should render as if in a mobile device.
Additional context
From our initial investigation, here is what appears to be happening:
Our current understanding of what's happening:
Mobile/tablet preview uses the use-simulated-media-query function which works by modifying the loaded stylesheets to simulate being viewed on mobile/tablet breakpoints.
This works for stylesheets loaded from the same domain. However, on wordpress.com, the static domains s0.wp.com and s1.wp.com are used to serve many stylesheets such as those from the full-site-editing-plugin.
These stylesheets are therefore rendered in desktop mode even when using mobile/tablet preview.
calypso issue: Automattic/wp-calypso#40401
Describe the bug
On wordpress.com we use stylesheets loaded from
s0.wp.com,s1.wp.comfor various plugins such as full-site-editing.When we install the gutenberg plugin and use the mobile preview, some of the css still behaves as if in desktop mode, so we see columns on mobile preview etc.
To reproduce
Steps to reproduce the behavior:
full-site-editingplugin)Expected behavior
The columns should be stacked for mobile display. Preview should render as if in a mobile device.
Additional context
From our initial investigation, here is what appears to be happening:
Our current understanding of what's happening:
Mobile/tablet preview uses the
use-simulated-media-queryfunction which works by modifying the loaded stylesheets to simulate being viewed on mobile/tablet breakpoints.This works for stylesheets loaded from the same domain. However, on
wordpress.com, the static domainss0.wp.comands1.wp.comare used to serve many stylesheets such as those from thefull-site-editing-plugin.These stylesheets are therefore rendered in desktop mode even when using mobile/tablet preview.
calypso issue: Automattic/wp-calypso#40401