Decrease the screen size (not resolution) on android 11 (wm overscan depricated)
I have the same issue with my Google Pixel 4a. Fortunately even though overscan is deprecated, setting size still works. The downside is that the screen is centered instead of being aligned to the bottom of the screen.
Open a root shell on your phone, then run:
wm size # to get your current phone display size
wm size 1080x1800 # slightly reduce the display size

You can also use wm size reset to reset the display size.
Edit: you can also use Screen Shift to edit the screen resolution. (Overscan won't work.)