That's exactly what some of them do.
Pornhub blocks access in Virginia over new age verification law - https://www.wric.com/news/virginia-news/pornhub-blocks-acces...
Part of the challenge with this one is it does that "civil right of action" where it's not the state suing the entity but private citizens. That makes it more difficult for the company to defend against it.
Though this gets into a "how much effort are you going to put into it" and "how much control do you have over the ways the content is distributed?"
This also is about liability for the backend service - not the ISPs or other providers (3rd party apps are in a gray zone as to if it is Reddit or the 3rd party app that would be liable for showing such content... and my crystal ball says it would probably end up being that Reddit would be solely liable).