Not able to connect using mobile data or any other wifi

At home, when my “viewer” smartphone is connected to the same wifi as “camera” everything works well. Using any other connection like mobile data or other wifi cause black screen and infinite loading. What could be the problem? Both phones have app up to date.