Adding rotation to camera without stopping the player using their camera

How would I temporarily offset the camera angle without stopping the user from moving their camera? https://www.youtube.com/watch?v=QsFesbUrodI is an example of what I want to achieve.
Might be important to say that this in first person, probably won’t change anything though.