Wifi disconnects when phone sleeps or locks

My iPhone 8 recently started having an issue of disconnecting from wifi when it falls asleep or gets locked. When I wake it the device has to search and reconnect. I already tried all software fixes on the internet to include a full restore. Could it be a hardware problem?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2947414:01crwdne2947414:0:

If anybody has this issue, be sure to check out what VPN’s you have active. I was using Cyberghost and this whole wifi issue was caused by that. Problem solved!

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0