Tongue-in-cheek

A newspaper clipping from 1833, in which a tailor whose coat was stolen from a bowling alley advertises an offer to alter the coat to fit the thief

Tongue-in-cheek is an idiom that describes a humorous or sarcastic statement expressed in a serious manner.