Check out When Opposites Mean the Same Thing by rogersgeorge. Here is an excerpt:
This comic illustrates the principle that defines sarcasm: a sarcastic statement means the opposite of what it says.
https://www.gocomics.com/birdbrains/2019/12/08 Reminds me of the famous joke where “yeah right” means “no.”
The full article is available here.