I bought this Full HD Webcam for a tenner. The price has gone up to £17 but it's very impressive for the price
You can use your phone as a webcam. https://www.digitalcare.org/how-to-use-iphone-as-webcam/ I’m sure there’s alternatives for android.
I used one of my phones as a webcam but left it permanently plugged in. It's out in the garden now waiting for the gas to disperse after it swelled up and split, fortunately without bursting into flames.