Houses that don’t belong on the land

There are some houses that never should have been built. You can't even level them and build a better house on that lot. Either the lot is too small to build on — by current standards — or the land is not fit to hold a house. I have seen both. Potentially unsolvable problem, type 1