Hello, I'm not sure if you found what you are looking for but from looking around there are some types of tools that should be capable of providing you with what you are looking for based upon your specific rules.
There are tools like "https://www.maxmind.com/en/geoip2-databases" and "https://ipinfo.io/products/ip-geolocation-api" that deal with this, however if you are not ready to spend funds, there is a "https://dev.maxmind.com/geoip/geolite2-free-geolocation-data#:~:text=GeoLite2%20databases%20are%20free%20IP,accurate%20than%2C%20MaxMind%27s%20GeoIP2%20databases%20.," the only downside is that it is far less accurate than the paid version I provided above.
There are also some useful CDN services, Akamai as well as Cloudflare are able to provide you with routing and device detection features which you could use alongside with the tools provided above.
If you are good with JavaScript and/or PHP you can create some custom server-side scripts for content redirection.
Have a good day!