set up Router to use the only route which is not using hotspot

Dear all,
I have two gateway, if one is disconnected, my router will redirect to another one using OSPF and static route,
But currently, it doesn’t work because the ISP router redirecting to the hotspot page if we pay a day late, so we still can ping any domain but when wanna access the page it is redirecting to payment page of ISP.

Is there any way to tell the router firewall, scripts, or route to use the route which is not using a hotspot??