Like I said the notification and status bar keep showing up when rotating the screen. This was not a problem when I had Android 9 but now I have upgraded my phone to Android 10 and it has started. My phone is Xiaomi Poco F1. To give an example: On using full screen on YouTube, I want to rotate my screen. When I rotate it then the status and notification bar pops up and overlaps the screen of the video.
This is the screenshot of what I'm talking about. Please tell me how to disable this feature.