You can get coatings for prescription specs that do that. I discovered the other day, when I looked for closely (sic) at the most recent prescription I was given, that the coating I have does filter out at least some blue light, and at least some UV light:
https://www.essilor.com/uk-en/products/ ... disclaimer