If you’re away from home, there isn’t much you can do if your cameras go offline beyond ensuring your phone has a working network connection and power cycling it. Sometimes I’ve had apps not work/perform poorly until it was given a reset.
When you get home, you can perform better checks:
There are other possible issues like the camera’s battery being completely discharged that would cause it to go offline.