For network level blocking on Android there's no need to root or go down any rabbit holes. Just set your DNS to a adblocking service like nextdns. It's natively available since Android 9 and there are workarounds for older versions (usually by using an app that pretends to be a VPN).