Welcome to the forum.
How old are they?
Mounting and chasing is a mild dominance behaviour. It is something they will always do to reinforce their bond and relationship throughout life.
You don’t need to do anything about it because it’s a natural way that piggies communicate with each other about hierarchy. You should never separate them because of it.
You are likely to actually be making things worse between them by separating them as they will then show more dominance to try to reaffirm then relationship every morning when you put them back together. At worst, constant separation and reintroduction could actually ruin their bond.
Also, it is very stressful for them to be separated from their partner.
Equally, if you only have one cage the chances are that by separating them that they are then going into a space which doesn’t give them enough room so will cause further stress.
The only time you ever separate boars is if there is a full on blood drawing fight. Otherwise they need to remain together at all times.
Ensure their cage is ideally 180x60cm (or a 5x2 c&c grid cage) but an absolute minimum of 150x60cm (or a 2x4 c&c cage) but do note that the minimum is often too small for boars particularly if they are teenagers (between 4 and 14 months of age).
You also need to ensure that there is two of everything on the cage and that all the hides have two exits. Any dead ends can be a flash point for issues.
A Comprehensive Guide to Guinea Pig Boars
Dominance Behaviours In Guinea Pigs
Boars: Teenage, Bullying, Fighting, Fall-outs And What Next?