That's how we lost our first snake a decade ago. Tank came with the mesh screen top. The cat was never allowed in the room unattended (office) but one night when we were gone, it somehow managed to get in, jumped on the screen top & ripped it. So this time around, we used a grill top instead. Still a bad idea though because though it's sturdy, the tail can peek through which has proven to be too tempting for a cat.
What we should have done is either put a plexiglass on top (with holes drilled) & affix it to the grill top (or mesh in your case) or line the grill lid with screen mesh. Costly & heart stopping lesson learned!