As an expectant first time parent, this is the bit that I'm bracing for most.
Every baby is different so most of the advice you find won’t work, but if you try enough things you’ll eventually find something that works consistently. Or you might just luck out and get a good sleeper.
Highly recommend getting a sleep tracker app.