Can I invest my way to a house deposit?

I’ve saved up a bit of money during the pandemic and I want to be able to buy my first house in the next few years. I’m worried that with rates so low on savings accounts I’m going to earn practically no