How to freeze Yaxis in FPs component

I am a beginner in Unity…but i am professional programmer.just needed to know is it possible to freeze main camera’s Y axis in 1st person player component.Thing is i need player to navigate around but don’t want camera to look upwards

maybe don’t use Input.GetAxis(“Mouse Y”)?
or just open ProjectSettings → Input, and turn off Mouse Axis on Y.

Hope can help.~