You're going to have to be a bit clearer with your question. What you're asking isn't specific enough and doesn't make complete sense.
If you're asking about a RTH initiated on the other side of a hill (why is your Mavic maxed at 398 feet?), what will it do? It depends on what your RTH altitude is set at and if your obstacle sensors are on. If your RTH height is lower than an object between you and your Mavic, it will collide with that object at your RTH height (OA sensors off). If your sensors are on, it may stop and try to go around the obstacle if it's something reasonable like a tree or other small (relatively) object. If it is something large like an entire hill or a large building, it likely won't be able to return and it will eventually land when it reaches critical battery.