Wall of fire: What’s a ‘solid surface’ and what happens if it stops existing?

Wall of fire has to be cast on a solid surface. What’s a solid surface? Can it be the back of a dragon? Dragon scales are pretty solid..

If the solid surface disappears (ice melts away, roof collapses) does the spell then fail or stay where it was cast for the duration?