While the general advice is “don’t” it’s a tad more complex then that. I think the real advice should be “don’t, unless it makes sense for your story.” As others have shown, there are certain cases where pop culture references can enhance a story rather than detract, and all of them share the same basic rule that they make sense in the context of their respective stories. As stated, the easiest stories to do this in are historical ones, as pop culture references specific to the time in which they take place can enhance and add to their historical realism.
However, that’s not the only way to make them work. While it might not be true YA, Ready Player One is a great example of pop culture references working in a non-historical story. While Ready Player One takes place in the near future and has a teen boy as it’s lead, it’s choked full of 80s pop culture references, many of which are spouted off by our young hero who normally would be of inappropriate age to do so. However, it gets away with it because the book instantly establishes that 80s pop culture is still highly relevant and popular in this future era due to the fact the man who shapes the culture of their version of the internet cherishes it. Thus, in that context the references make sense as the story goes out of its way to show us why old and seemingly dated pop culture touchstones are still popular with its teenage leads. Further, this setting element is not just tacked on for the sake of making references but is also critical to the plot, as many of the challenges and trials the characters face over the course of the story are tests of their 80s pop culture knowledge.
However, this kind of setup has pitfalls; Ready Player One works because it makes it a point to show that 80s pop culture is ingrained into the story’s setting and is not just a quirky interest of the protagonist, and does so in a way which makes that setting element not come off as tacked on just for the sake of making references. If Ready Player One had Wade being just as obsessed with 80s pop culture but didn’t also make it ingrained into his society then it would likely lose a lot more readers, as it makes little sense for a teen boy in the near future to have an avid interest in dated 80s pop culture. At least not without some kind of outside factor like Ready Player One had to make it make sense, anyway. This is why in my current WIP I have one of the POV characters who is a massive anime fan/otaku obsess over made-up series instead of referencing actual big names like Dragonball, Pokemon, or Salior Moon. This WIP takes place on an alternate future version of earth with superpowers and attacking monsters, so it would make little sense for her to obsess over anime that would be about as dated to her as black and white silent films are to us now, especially since there is no cultural reason that old anime would be relevant to her. So my advice is to avoid specific pop culture references, unless you have an in-universe reason for your teens to be referencing dated pop culture that makes sense and doesn't come off as tacked-on just for the sake of being able to make references.