Camera movement laggy/gittery

script is placed directly on camera, player movement is controlled by ragdoll.
camera is really laggy and jittery when moving on THE X AXIS the y is fine. it is worse when in build.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PC_2 : MonoBehaviour
{
    public float MouseSen = 100f;
    public Transform player;
    public float xrot = 0f;
    public bool enabled = true;
    // Start is called before the first frame update
    void Start()
    {
        Cursor.lockState = CursorLockMode.Locked;
        Cursor.visible = false;
        enabled = true;
    }

    // Update is called once per frame
    void LateUpdate()
    {
        if (enabled)
        {
            float mousex = Input.GetAxis("Mouse X") * MouseSen * Time.deltaTime;
            float mouseY = Input.GetAxis("Mouse Y") * MouseSen * Time.deltaTime;
            xrot -= mouseY;
            xrot = Mathf.Clamp(xrot, -90f, 90f);
            transform.localRotation = Quaternion.Euler(xrot, 0f, 0f);
            player.Rotate(Vector3.up * mousex);
            float horizontalInput = Input.GetAxis("Horizontal");
            float verticalInput = Input.GetAxis("Vertical");
        }
        if (!enabled)
        {
            Cursor.lockState = CursorLockMode.None;
            Cursor.visible = true;
        }
    }

}