Trouble With Rotating Camera

I’m trying to make a camera that’s attached to a pawn that will rotate without changing the location of the camera. Currently if I try to look down, the camera approaches, and sometimes even clips through the ground. I want the camera to only rotate without moving towards where it is rotating. How do I achieve this?