For most app ads it's enough to set a DoT or DoH in the system that blocks ad domains. Android supports this with a settings menu entry, on Apple one needs a more "technical" solution I think (loading some XML?). Most VPN apps also support DNS enforcement.
Apps like YouTube are an exception, but there are other ways around that on Android.
Apps like YouTube are an exception, but there are other ways around that on Android.