DisplayServer.ScreenSetOrientation is completely ignored on iOS

Godot Version

v4.6.3.stable.mono.official [7d41c59c4]

Question

It appears that the function DisplayServer.ScreenSetOrientation doesn’t behave as expected.
According to the documentation, this function has no effect on iOS if ProjectSettings.display/window/handheld/orientation is NOT set to SCREEN_SENSOR.

However, as soon as it is set to sensor, iOS completely takes control over the screen orientation, and even calling this function multiple times won’t actually change the orientation.

Is there a way to properly FIX the game into a specific orientation on iOS, while still being able to dynamically change it for one scene of the game, and not let the user rotate it freely?