Go to the Lens Correction Tab
In the Camera Raw Filter window, head to the Lens Correction Tab. In the Lens Correction Tab, head over to the Manual tab. There you’ll see the different options for the Upright tool.
Auto automatically applies what Photoshop thinks are the proper perspective corrections. Level ensures that the image is level, Vertical applies both level and perspective corrections, Full applies level, vertical and horizontal perspective corrections.