I believe the expression you are looking for is “tongue-in-cheek”.
https://en.m.wikipedia.org/wiki/Tongue-in-cheek