Change
Project Settings > Rendering > Environment > Default Clear Color to Black
Project Settings > Display > Window > Handheld > Orientation to SensorLandscape
In order to view your project
Add
a ViewportContainer node as your scene root
a Viewport node as a child of ViewportContainer
all your main game scene contents as a child/children of Viewport
Change Viewport's rect_position.x
to the edge of the notch (you may have to do some Goldilocks work)
Minus Viewport's rect_position.x
from Viewport's rect_size.x
P.S. All of the above can be achieved in code using the root viewport and encapsulating it with an if OS.get_name() == "IOS":
or
if OS.get_model_name() in [list of notch carring phone models]