Bathroom floor demo

We encountered multiple layers of stuff when tearing out the floor tile in a bathroom demo -- what is it? What's the best way to deal with it? 😬

We'd like to put in our own tile and install a floating vanity, so getting it all level with the old vanity spot is a priority