Camera started bugging and character rotating due to animations

I have a third person camera on my character and following it, but as soon as I added animations, the camera started zooming in, and rotating the player, and I have no idea why, at the start I thought it was the camera, now I am not sure. So sometimes it also rotates the player and is forward place that he looks at is the side of his body, if I play for a while.
I downloaded the animations from mixamo and downloaded them in place.

Here’s the camera script:

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

public class ThirdPersoncameracontroller : MonoBehaviour

public float RotationSpeed = 1;
public Transform Target, Player;
float mouseX, mouseY;
// Start is called before the first frame update
void Start()
    Cursor.visible = false;
    Cursor.lockState = CursorLockMode.Locked;

void LateUpdate()

void Camcontrol()
    mouseX += Input.GetAxis("Mouse X") * RotationSpeed;
    mouseY -= Input.GetAxis("Mouse Y") * RotationSpeed;
    mouseY = Mathf.Clamp(mouseY, -35, 60);//prevents the camera from fliping 


    Target.rotation = Quaternion.Euler(mouseY, mouseX, 0);
    Player.rotation = Quaternion.Euler(0, mouseX, 0);


Probably the animations are changing the position of camera target following. So you need to separate the pivot that the camera follows from the animations pivot.

Example, I have gameObject called player and my câmera following that gameObject. If the animations changing the gameObject player, the câmera will the changing too.

For now, I would have a gameObject called player, and childs called “animation” and “pivot”. The camera following the “pivot” and anitations change the gameObject “animation”

The structure would:

GameObject Player.
	Child Pivot - Camera follower this
	Child Animations - Aniamtions change this