It doesn't need to be the case that the 'wide' two are actually doing anything different to if they were in a 4, there's a few ways to set up to accommodate for that.
We don't have the players to play it in this way, inadequate full backs, don't have a midfielder to turn into a Libero and our goalie is grim with the ball, but I absolutely love this set up:
https://analyticsfc.co.uk/blog/2023/11/10/st-paulis-year-of-hurzeler-now-also-playing-the-best-football-in-the-2-bundesliga/