routing mark, such as about routing end devices

You see, I have a routing for clients, and to balance loads I use mark routing, the disadvantage is that when performing a basic dynamic routing (RIP) for LAN equipment and being able to access the user modem, the route does not resolve them.

I know what the routing mark is, since by disabling it I could enter the modem without any problem.

What could I do since I also need to keep the mangle with routing mark?

You could exclude some destinations from the mangle rule with address lists

You could also provide some meaningful information/configuration so one can actually help you.
Possible options to solve your problem:
In mangle: Accept specific routes for specific IP targets. That way they won’t hit the “balancing” mangle rules
(this is needed if you want to reach the GW or modem that provides to Mikrotik the actual data connection).

Or as said in previous post, mangle “more precised” by using address list, interface list etc.

But without config/data no way to help you further.