XCTest mismatch the device window

device : iPhone 8 Plus version: iOS 16 xcode version: 15.0.1 mac os: 13.6.6

When XCTest start to automation running, it does not cover the device's whole window as the picture shows. And my test cases testify that it cannot inspect the element outside of the cover. Is there any solution to make it compatible?