Can't connect to the internet from subnet in IPVLAN L3 docker network

I have created an ipvlan L3 network with subnets 192.168.20.0/24 and 192.168.30.0/24 and parent interface wlan0 with IP 192.168.10.2
I then create 2 containers, 1 in each subnet and assign IP 192.168.20.2 and 192.168.30.2.
I assign 2 static routes in the upstream router with destination 192.168.20.0/24 and gateway 192.168.10.2 and 192.168.30.0/24 with the same gateway.
Containers can ping each other and devices in 192.168.10.0/24 (my LAN subnet) can ping the containers. The issue is that the containers can’t ping anything in the internet.
What configuration am I missing?