Hey, Hrothgar987. Thanks for using Apple Support Communities for this issue. Your iPhone 7 Plus doesn't consistently rejoin your Wi-Fi network after the screen's been unlocked. I'll be glad to help.
If your iPhone, iPad, or iPod touch won’t connect to a Wi-Fi network -- Follow all of the steps in this article to make certain your iPhone is able to automatically rejoin.
How iOS decides which wireless network to auto-join -- This article explains how an iOS device decides to automatically connect.
Take care!