You can just enable Use Control Rotation Yaw when the player character is moving and disable it back when it isn’t.
Use Control Rotation Yaw