Why can’t you open a tightly screwed metal lid until it’s heated in hot water?
Heating the metal lid causes it to expand due to thermal expansion, loosening its grip on the jar, which expands less if made of glass or remains unchanged if plastic.
Ref: NCERT Class 11 Physics, Chapter 11: Thermal Properties – Calorimetry.