I am having a strange problem with an Android app designed for phones when working on a tablet. The user interface scales correctly on the device, but there this large black border overlaps the edges, as if it is trying to show some version of the screen on the phone screen.

Oddly enough, when using the Android Studio Layout Inspector to try to see what a black frame is, it shows only the user interface that we want to have, without a black border sign:

I was busy with a lot of settings and tried my best to try to solve this problem, but I can not find anyone to solve the problem. Has anyone come across this or does anyone have an idea how to fix it?
android user-interface tablet
Niall
source share