Check device orientation with fixed screen orientation?

So basically I want to check the screen orientation (i.e. Screen.orientation) but in an application with fixed screen orientation (e.g. always set to Landscape). In other words, I want to know what orientation the device currently has (what would Screen.orientation return if it weren’t fixed). How to do it most easily?

Thank you, that helped me too.