How do I flip the rotation?

I am trying to rotate an object using gyro and it rotates fine but the left and right rotation is flipped meaning when you tilt the phone right it will rotate left.

Origin = transform.rotation

Void Update()
{
 Transform.rotation = Origin * Input.gyro.attitude;
}

Any suggestions?

It’s a kind of hacky way to do it, but you could use eulerAngles:

Vector3 euler = Input.gyro.attitude.eulerAngles;
Transform.eulerAngles += new Vector3 (euler.x, euler.y, -euler.z);