If your live view is not oriented correctly, follow these steps to adjust it:
To help me tailor a more specific solution, could you provide a bit more context?
transform.rotation = Quaternion.Euler( transform.eulerAngles.x, transform.eulerAngles.y, 0f // Force roll to zero );