using gyroscope to control camera in ue4
If you mean a VR camera, you need to disable Pawn Control Rotation and enable Lock to HMD in Camera component. If you use a Camera Boom you also need to disable Pawn Control Rotation and all inherited rotations in Camera Boom component.