Select gateway based on lan client gateway configuration

I’m building up a configuration for route some lan hosts via GW1 and others lan hosts via GW2

The easyest standard setup i can use is to create some mangle rules to mark for appropriate routing packets coming from a specific ip range.
With this setup i can route some hosts (let’s say 192.168.0.2 to 192.168.0.127) to GW1 and other hosts (let’s say 192.168.0.128 to 192.168.0.254) on GW2, and it works without problems.

But i’m thinking for a setup where the router have an ip alias, 192.168.0.1 and 192.168.0.2 on the bridge-local interface and the goal is to route to GW1 clients that have 192.168.0.1 as gateway and to GW2 clients that have 192.168.0.2 as gateway.
Is that possible? With mangle i can’t find any option to specify things like this.

Thanks.