Preview options don't actually show the page as it would appear in the browser #34569
Labels
General Interface
Parts of the UI which don't fall neatly under other labels.
[Type] Enhancement
A suggestion for improvement.
Description
The new Desktop/Tablet/Mobile Preview options are mostly useless and don't provide an adequate preview of the page.
For a start, clicking the "Desktop" Preview option does absolutely nothing. Clicking the "Tablet" or "Mobile" preview options simply reduces the width of the editor area. It doesn't provide a real representation of what the page looks like on the front end, in the browser. It doesn't show headers or footers, it shows Read More... tags when they're not actually shown on the front end. Using TwentyTwenty, it doesn't even show changes made from Media Queries such as font sizes and layout changes. It can't be called a "Preview" if it doesn't accurately represent how the page actually looks.
All of these options should open the page within a new browser tab, and then minimise the screen width, according to the option selected. In fact, there should be just one "Preview" option, as there was before. This Preview page should then provide options to view it in either Desktop, Tablet, or Mobile view.
This is not how the Desktop view of the page looks

This is not how the Mobile view of the page looks

This is a true preview representation of the mobile layout (screenshot of the Responsive Design Mode in Firefox). Site header and footers can be seen. Media queries are executed properly, seen by fonts resizing and layout changing.

Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WP5.8 (No Gutenberg plugin. Core only)
TwentyTwenty
MacOS Big Sur 11.5.2
Firefox 91.0.2
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: