When I use my mouse to rotate camera in my FPS game, the character moves around.

In my FPS game, I have an issue where my moves around in a big circle. This only happens when I try to move the character’s sight ( I am not trying to move the character). he just moves in a big circle when ever I try to rotate the camera.
My code :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class mouselook : MonoBehaviour
{
public float mouseSensitivity = 100f;

public Transform playerBody;

float xRotation = 0f;

// Start is called before the first frame update
void Start()
{
    Cursor.lockState = CursorLockMode.Locked;  
}

// Update is called once per frame
void Update()
{
    float mouseX = Input.GetAxis("Mouse X") * mouseSensitivity * Time.deltaTime;
    float mouseY = Input.GetAxis("Mouse Y") * mouseSensitivity * Time.deltaTime;

    xRotation -= mouseY;
    xRotation = Mathf.Clamp(xRotation, -90f, 90f);

    transform.localRotation = Quaternion.Euler(xRotation, 0f, 0f);

    playerBody.Rotate(Vector3.up * mouseX); 

}

}

Can you send me a small video file of your issue

My guess would be the player is rotating around a point rather than rotating from it’s center.