Camera Confusion

so I’m trying to learn how to use a viewport frame, and the duplicated camera i used to do it was weirdly moving and turning with my studio camera, and I need to replicate this. Does anyone know how to do this?
~~

More info: I duplicated the default camera and messed around with the position and orientations, and then suddenly the camera’s position snapped and when i moved around in studio(not in testing) the camera moved and rotated with it. This is useful to me and i need to replicate it.