New(ish) computer having connection issues

Okay, so — when I turn on my computer, my wifi connects perfectly! The weird part is that after a few hours it disconnects and says "Can't connect to this network" or is permanently stuck in an endless state of connecting (my wifi is perfectly fine, all my other devices connect without issue). Every guide I've found doesn't really apply to my situation (i think) and I hate having to restart my computer since it takes a while to do. I don't have much computer knowledge and I literally just bought it yesterday - it's a Dell Inspiron 3650, if that helps.

If anyone could help me with this issue or send a guide to help, that would be amazing. I really hope it's not some internal issue, but it probably is.

Okay, so — when I turn on my computer, my wifi connects perfectly! The weird part is that after a few hours it disconnects and says "Can't connect to this network" or is permanently stuck in an endless state of connecting (my wifi is perfectly fine, all my other devices connect without issue). Every guide I've found doesn't really apply to my situation (i think) and I hate having to restart my computer since it takes a while to do. I don't have much computer knowledge and I literally just bought it yesterday - it's a Dell Inspiron 3650, if that helps.

If anyone could help me with this issue or send a guide to help, that would be amazing. I really hope it's not some internal issue, but it probably is.