Repository: flutter
Issue: [Web] Enter Full Screen causing app content to be zoomed, decentered and disappear after unmaximizing on 4K monitor
Labels: engine,platform-web,c: rendering,browser: firefox,P2,browser: chrome-desktop,team-web,triaged-web

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. On macOS, with 2 monitors (a 16" MacBook Pro + a 4k display)
1. Set the Built-in display resolution to "More Space"
1. Set the 4k monitor resolution to "3360x1890"
1. Set the 4k monitor on the left of the built-in monitor
1. Open https://gallery.flutter.dev/ in Chrome or Firefox (no issue with Safari) on the 4k monitor
1. Click on the browser's green maximize icon

### Expected results

The content is visible as expected with more space to work

### Actual results

The content is zoomed in and decentered. After that, unmaximizing the window does not restore the content size.

### Code sample

This is reproducible with any Flutter application.

### Screenshots or Video

https://youtu.be/GsHM3aX_gSo

### Logs

_No response_

### Flutter Doctor output

Not a code I've built. Flutter always did that.

```
[✓] Flutter (Channel stable, 3.13.8, on macOS 14.1 23B74 darwin-arm64, locale en-CA)
    • Flutter version 3.13.8 on channel stable at /Users/dad/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 6c4930c4ac (12 days ago), 2023-10-18 10:57:55 -0500
    • Engine revision 767d8c75e8
    • Dart version 3.1.4
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/dad/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = /Users/dad/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 14.1 23B74 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 118.0.5993.117

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```