Raycast click System using multiple cameras

I’m using multiple cameras in my scene and I need to figure out which camera is the mousePointer currently on. I tried using ScreenPointToViewport but it didn’t work, it gave me the same value for all the cameras.