This is a clamp on lid I designed for your standard large glass bier stein. I use these as water glasses and the lid keeps the cats out.
Print in PETG for best results.
There is a little knob that should press onto an 8-32 hex bolt. This will allow you to secure the Lid base to the handle of the stein. You could print this around 126% scale and use an M5 hex bolt instead, with no changes in scale to any other part. There is a hex cutout in Stein Lid v3 - Base that should work for either an 8-32 or an M5 nut.
I used a #4 thread forming screw for the hinge, but you could really use any bolt you want for this and just drill out the hole.
Post a picture if you make one!