Hello and welcome to Apple Support Communities, juulesvanl!
I understand you're unable to get your iPhone 8 Plus to connect or stay connected to Wi-Fi. I'd be happy to provide any information that may help you resolve this issue.
This article may help you out with your Wi-Fi: If your iPhone, iPad, or iPod touch won’t connect to a Wi-Fi network
If you're too far from your router, you can't get a signal, so make sure that you're within range.
Tap Settings > Wi-Fi and make sure that Wi-Fi is on. Tap the name of your Wi-Fi network to join. A blue checkmark beside a network name means that you're connected.
If you see Auto Join Disabled under your Wi-Fi network name, tap and turn on Auto-Join.
If asked, enter the password for your Wi-Fi network. Get help if you don’t know your password.
Even if you enter the correct password, you might see an "unable to join the network" message or an "incorrect password" message. Restart all of your devices, then try to enter your password again.
If iOS detects an issue with your Wi-Fi connection, you might see a Wi-Fi recommendation under the name of the Wi-Fi network that you're connected to. For example, you might see the alert "No Internet Connection." To get more information, tap the Wi-Fi network.
If you still can’t connect to your network or get online, make sure that your router is connected to the modem and turned on.
Try restarting your iOS device, router, and cable or DSL modem. To restart your router or modem, unplug it, then plug it back in.
After you restart each device, see if you fixed the issue.
Reset your Network Settings. Tap Settings > General > Reset > Reset Network Settings. This also resets Wi-Fi networks and passwords, cellular settings, and VPN and APN settings that you’ve used before.
Thank you for using Apple Support Communities.
Have a great day!