What happens to Wall of Fire if the surface moves

The situation I am wondering about is if Wall of Fire is cast upon a wall and then the wall either falls over or crumbles. Would the wall of fire remain floating in the air? Would it disappear? Would it follow the surface to the ground?

Wall of Fire reads:

You create a wall of fire on a solid surface within range.