Rotate the 3d player based off of phone rotation

Hello! I’m doing some testing with recreation of Virtual Reality with a phone, and I know some phones have motion tracking so I’d like to know how I can rotate my player’s camera base off of the roation of the phone.

Ex: The player moves 8 degrees right, the player is at 77 degrees, so it turns to 85 degrees etc. etc.

Thanks!

You can get started here: Unity - Scripting API: Input.gyro