Limit view yaw relative to mesh instead of control

Hello!

I want to limit the view yaw relative to the mesh’s forward vector instead of the controller’s world rotation. What to do?