A dangerous viral trend led to a blaze that could have ended in disaster