Menubar doesn't hide automatically sometimes.
I have enabled the setting option where the menu bar hides automatically always in all cases, but if I am using any certain app and I use the menu bar to do some changes like Wi-Fi or Bluetooth or something like that , two out of 10 times the menu bar doesn't hide automatically and it stays in its place, it seems really irritating to me, we usually do not expect such type of bugs in macOS. Then to hide the menubar again, I have to go fullscreen in that app and then again exit the full screen and ultimately the menu bar hides or I have to switch between fullscreen windows to hide the menu bar. This has been really frustrating for me and I'm looking for a solution to fix this and make sure that the menu are always hides automatically and doesn't stick to its place sometimes.
MacBook Air, macOS 15.2