First person 3D camera movement

**How do I creating camera movements in first person games for mobile devices???

What is the expected result

first person camera movement based on the direction of the right finger touch

What is the actual result

actually I have succeeded in making mobile camera movement using the “mouse pointer lock” extension, but I have problems when the player moves the right finger to change the direction of the character’s point of view and pressing the joystick at the same time, the character’s rotation follows these two inputs which makes the rotation direction chaotic, is there a solution for this, please

Related screenshots