Disabling 90 Degree Screen Rotation

Hi everyone

I’m running Gnome 3.34.1 on my 2-in-1 Lenovo X1 Yoga. Most of the time I use it as a regular Laptop and from time to time as a tablet -where the screen is rotated 180 degree. As the screen rotation works in 90 degree steps the screen also rotates 90 degrees if the laptop gets tilted too much. This can be useful but I never used and will probably never use the screen rotated that way.

Is there a way to restrict screen rotation to 180 degree increments i.e… only when you rotate the laptop past 90 degree the screen will rotate ( 180 degrees)?

Thank you for your help!