Device orientation controls transformed to face front camera

I know it’s been abandoned but I am trying to maintain a version for fullscreen on mobile. I am using a different sensor on Android to IOS and trying to make them work the same.

I can’t seem to figure out how to transform the alpha properties to match the front of the camera depending where the phone is directing. It always wants to face the one direction. I tried adding the camera rotation to transform with to get it’s original position. I thought I had it work but changing direction of the phone before starting it was offset to the left or right.

I’ve noticed this same problem going to XR but figured out a way to transform from the camera rotation and position. It will face the right way.