Aquarium lid ideas to prevent inhabitants from escaping?

I want to get a mystery or apple snail for my aquarium but I’ve been told they need a lid or they will escape the aquarium. Glass and acrylic are very expensive, is there anything cheaper I can use as a lid just to keep inhabitants like snails inside the tank?