A few things that really need to be stressed. Disconnected is the apps means of communicating to you that you are no longer recieving data in the app. The app connection and the RC connection are seperate and distinct. The RC is what controls the mavic the app provides video, telemetry and flight data... You absolutely do not need the app to fly it back. When you are new RTH is your friend. Make certain RTH is properly set up in the app and set it to a safe height that will clear all obstacles before you start flying anywhere. Do not launch before you have the green GPS lock and recorded homepoint. If something happens and you lose connection and don't know where it is... hit the RTH button and monitor the telemetry on the RC. If you can see it fly it back yourself. To be honest you should be training for all scenarios until you are confident.
Here are the scenarios I train for:
1) Application disconnected (LOS)
Train - Take it out about 500 yards disconnect the cord bring it home
2) Application disconnected (lost location)
Train - Take it out about 500 yards break eye contact use the telemetry to bring it back don't eyeball it until it is overhead.
3) Application connected (Lost visual location)
Train - Take it out about 500 yards break eye contact use the app to bring it back. Don't eyeball it until it is overhead.
4) Application connected (lost RC connection)
Train - Take it out to 500 yards and shut down the controller. (Give it a few seconds and try to reconnect)
5) Lost GPS connection
Train - You need a trainer here. Buy a cheap $50 trainer and work on flying it outside where there is some wind. You should already have one if you have a Mavic. No way should you being flying a 1K quad before learning on one you can crash.
NOTE: you can add another layer of training by hiting RTH in some of these scenarios. When using RTH understand that you can still control the speed of the return by using the sticks. You can also lower the altitude during the RTH by using the sticks. Remember if you are out and lose connection while you are at 350 feet the copter will return home at that altitude even if that isn't what you have your settings dailed in at on the app. Use the sticks to lower the altitude to an optimal altitude. This is really handy if you notice that you have flown out with the wind and are having a hard time getting it back.
After you have done this move your scenario out further and keep working until you are comfortable during all scenarios and ... absolutely understand what is happening when things go sideways.
Protip - if you can see it you should be able to bring it back using the technigue below. This was the one tool that really helped me be calm when I lost video on my old quads. It has saved my often.