Two external ISP with same gateway no remote access with winbox

Hello, guys

I have two isp ports:
ISP1: 192.168.2.1 /16
ISP2: 192.168.1.1/16

Gateway for those two connection: 192.168.0.1

How to configure route table? Because now I have two external ISP connections created loop.
When I try to access 8291 I can see in firewall connection that the packet came but after that the packet which should come back to the same port not going to the right port.

There are two things. One is overlapping subnets and gateways with same address, which is not the best thing to have. But you can add two routes like this:

/ip route
add distance=1 dst-address=0.0.0.0/0 gateway=192.168.0.1%etherX routing-mark=isp1
add distance=1 dst-address=0.0.0.0/0 gateway=192.168.0.1%etherY routing-mark=isp2

The rest should be the same as with any other dual-WAN config. Mark new incoming connections and then mark routing for reply packets. Example of that can be seen here: https://wiki.mikrotik.com/wiki/Manual:PCC

[Codebox=html4strict file=https://wiki.mikrotik.com/wiki/Load_Balancing[/Codebox]

I have problem with icmp too.I can see in the firewall connection that TCP state is empty. I try PCC, but there is there is still problem with remote access.