Choose BP depending on target platform

Hi,

Just want to know if there’s a way to, automatically, make a build using specific BP fot each platform. Let’s say I want my game to be built for PC, PS4 and Switch. Some widgets and BP are different for each one, so I want them to be built on their platform (a BP for PC, other for PS4 and other for Switch). The only way I found is making branches in source control, but I was wondering if there’s a way to do this without branching the project.

Thanks!