Is it possible to stop the camera y from rotating at a certain point?

because otherwise cameras kinda zoom in and are wierd