Netcode for GameObjects Camera issue

Players: p1 p2

The game is working well with just p1 but when p2 joins in p1 thinks it camera is p2's camera

I constantly have problems with this

You have one or more network player prefabs.

Put a camera child object inside that prefab and deactivate it.
Upon spawning the network player, determine whether this is a local player or not.
If local player, set that camera object to active. Otherwise do nothing.

Remove any camera object/component already in the scene.

That way only the local player‘s camera is active.

thank you