Pihole on your network will block those. I use apps and games on my phone and then leave my house and get surprised at how many ads I didn’t know where there.
Look into setting up WireGuard or tailscale depending on what you have available to you. I’m always on my home network, blocking ads, thanks to my own VPN.