Not "irony" or "hyperbole" - is it just "joke"? [duplicate]
It can be either irony or sarcasm depending upon the mood of the speaker.
If the speaker intends only a humorous comment, it can be called an ironic expression.
If a criticism and hurting ones feelings in a humorous way are intended, it can be called sarcasm.
IRONY: the use of words that are the opposite of what you mean, as a way of being funny.
SARCASM: the use of remarks that clearly mean the opposite of what they say, made in order to hurt someone's feelings or to criticize something in a humorous way.
sarcasm : the use of words that mean the opposite of what you really want to say especially in order to insult someone, to show irritation, or to be funny
https://www.merriam-webster.com/dictionary/sarcasm