I'm playing with a Galaxy Tab s7 (Android 10, Drastic last update...etc). It happens to any games.
When I turn ON then OFF my tablet OR turn ON then OFF Dex mode in my tablet :
The layout is resized like the screen was smaller, meaning there is a gap on the right side and bottom side of the screen.
Sometimes it does something else, resizing my screen and the buttons close to the right and bottom side and making it not smaller but bigger,
The screen when everything is normal:
When it bug:
Thanks for the help.