There is no background wall on the square your head is occupying.All you need to have teleporting available is that:
Note that the definition of 'underground' is a bit crude. Going underground will make it vanish, like this:
Note that it will only be available while on the surface of the planet, outdoors. In the top-right of your screen, there is a button to teleport back to the ship.