Head rotation with first person view

Hello. I’m trying to do a head rotation in first person view. I use the built-in first person template. First I want to make the character rotate his head when turning the camera up to 45 degrees, and then the rest of his body. I was partially able to implement this, but the problem is that along with the head, the whole body rotates at once. I don’t know how to make sure that while the head is rotating, body rotation is disabled.

Look up turn in place tutorials, make animations. Use the techniques provided by the turn in place tutorial to achieve exactly what you want.

I need only the head to move first. I know how to do a leg turn.

Obviously you either don’t, or you fail to grasp the concept of how it works.