How to block sites/apps on both my iphone and mac?

I want to block certain sites/apps across both my iphone and macbook, for given block of time each day. I know there are loads of solutions out there. I don't care about productivity analytics, and I would prefer something that syncs across my devices. Can iOS/macOS do this already (yet)? What do you use?