Maybe this was just my own misconception, but I always thought that my ants were trying to escape by wedging grains of sand under the glass to lift it up. Well, I tried to combat this by pushing the sand out with a needle. But only then did I see that the acrylic is a little warped, and the ants, instead of escaping under it, started to fill back in the gaps with the sand I had just removed. Below is a timelapse I took of the process.
We always think our ants are trying to escape, but they want the their own secure home much more than they want yours.