That was said tongue in cheek
The idiom refers to something not to be taken seriously. Something spoken might be the opposite of what a person really meant. ‘That was very good’ might be said when something was not very good. The idiom comes from visual clues like pushing the tongue against the inside of the cheek or biting the tongue in order to not laugh.