You’ve seen it many times. Left, right, left and then right again. And seldom anywhere down the middle. Perhaps your posture at address and during the swing is out of alignment or consistent. There is a lot to consider before each swing: distance, wind, level lie to name a few.
Learning the proper fundamentals that are necessary for each swing will go a long way to creating a consistent, more reliable swing.