how can i make my drone to raise higher when it loses connection with the remote?
It would help a lot if you specify the make and model of your drone.
A few more elaborations of your query would help avoiding misinterpretations.
Lacking adequate info from your post, I am making a few suppositions :
1. Yours is a "toy" drone. NOT a "hobby" drone. If it's a hobby drone, please ignore everything I say from here on.
2. Yours is a GPS drone.
3. When a GPS drone loses connection with the controller, it will automatically go up to a "certain altitude", then it will fly back and land on to where it was launched.
Your question is : how to make the drone go
higher than that "certain altitude".
If that is actually what you are asking, try this....... ( no guarantees )
Open the drone's app > there should be a Setting option from the
app> open it > see if there is a Param (parameters) option > if yes, click it > there should be an option to increase the altitude.
Hope it is of any use to you.