They may be in a phase with this right now and you will have to just keep them apart.
When you want to change a behavior you have to name it, so I would talk to them separately about each one’s point of view. Even when they are young they will have some thoughts. Just listen and don’t rebut their feelings.
You want to listen for themes, like taking turns or not sharing.
Then you can talk to them together and emphasize that brothers should always have each others’ backs.
Then you can work with them to set a goal, like playing in the same room with separate toys for a set period of time. Make it something you think they can do now so you can be sure they get the reward, which you will tell them about ahead of time so they know what they are working for. Then as soon as they have earned it, give it. Maybe a jar of bubbles each, or a Matchbox car, or an ice pop. Praise them and put a star on the fridge on a piece of paper. Then do it again in the afternoon.
You want success and visual stars to build up so they think of themselves as kids that can play nicely together.
If they aren’t successful, then you separate them and don’t go overboard scolding. Try again later.
Meanwhile, you try to play with them, take them places where there are other kids or activities so they aren’t stuck with each other all the time. Developmentally, the phase will pass.