it is a slang used when some old person or someone from Gen X, or maybe even a Karen tell millennials what to do and what not to and Gen Z reply with "Okay boomer"
OLD GRANDPA: Stop looking at that damn phone. This is why you get sick all the time.
Gen Zs: Ok Boomer