Keep losing signal when connected to Dell Monitor P2219H
I recently purchased a Dell monitor (P2219H) and connected it to my Macbook Air (2019) with a HDMI <> Usb-c cable. It worked for about a week, but it loses signal intermittently so I would have to plug and unplug the cable until it connects again. However, for the past few days, I have not been able to connect to the monitor at all. Whenever I plug the cable in, my Mac screen flashes several times but no image appears on the monitor.
It is unlikely that the monitor or cable is faulty because both works perfectly fine with my HP laptop.
Should I be using an adapter instead of a direct cable?
Can anyone help with this? Thank you!
MacBook