Rotation Stuttering around 90° and -90° automatically.

I’m trying to create my own MouseLook script and I ran in to a problem where it automatically stops at around 90° and -90°. I want it to stop at 90° and -90°, but the automatic one seems to be very stuttery and glitchy and sometimes it only stops at 100.

using UnityEngine;

public class CameraMovement : MonoBehaviour
{
    [Header("Mouse Movement")]
    [SerializeField] private float sensitivity = 1;
    [SerializeField] private Transform Player;
    [SerializeField] private Transform Camera;

    private void Start()
    {
       
    }

    private void Update()
    {
        float mouseX = Input.GetAxis("Mouse X");
        float mouseY = Input.GetAxis("Mouse Y");

        Player.eulerAngles += sensitivity * new Vector3(0, mouseX, 0);
        Camera.eulerAngles += sensitivity * new Vector3(-mouseY, 0, 0);
    }
}

Any suggestions are appreciated, Thank You!

you euler angles are increased by potentially large amounts each frame.
if your mouseX is 200, then

in your 1st frame eulerAngles are increased by 200 degrees on Y
in your 2nd frame eulerAngles are increased by 200 degrees on Y
in your 3rd frame eulerAngles are increased by 200 degrees on Y

after one second of not moving a mouse at X:200, your angle is increased by 200 * FPS (frames per second).
it doesn’t matter if your sensitivity is low, this angle doesn’t resemble anything useful.

Thank you so much, I did not see the error.