It’s important with boars that you have two of everything so they don’t need to share. If a particular hide is causing an issue then remove it and replace it with something the same as you already have.
Make sure all hides have two doors.
The dominant will have the pick of everything first, but if there is a power struggle between them then their bond may be dysfunctional.
You need to establish whether it is dominance or whether it has tipped over into a dysfunctional bond.
For dominance, you don’t do anything.
Please read this guide as it explains everything more fully
Bonds In Trouble
The best thing, if you are concerned that it is more than dominance then you can carry out a temporary separation. Put in some more grids and split the cage in half for a few days. This will allow the pigs to calm down.
After a few days, remove both of the boys from the cage and put them on a neutral territory space and reunite them. Do not just remove the divider from the cage and allow each piggy to wander into the other half of the cage - doing that will be seen as a territory invasion.
When you reunite them on neutral territory, that will allow them to decide if they want to be together. If they are calm when reuniting them and for a few hours after (you will still see mild dominance), then they will are likely to go back together without issue and you can then clean out their main cage and move them back to it together.
If they are tense and/or fight or behaviours are concerning, then that is the answer that they do not want to be together. In that case, their separation would need to be permanent and you should put them back in the main cage leaving the dividers in place. A 2x3 space is minimum for a single piggy.
This is something you can’t do a lot though - use it once to decide if they want to be together