Wrong Apple ID in App Store
I have the same problem as is already asked here, here, here and here, but these posts are already more than 5 years old, and there is no (correct) answer on these questions.
In the settings screen, in the section iTunes and App Store, I see that I am logged in with Apple ID "XXX". In the App Store, when I want to update an app, it asks for the password belonging to Apple ID "YYY". This last Apple ID was the Apple ID from the previous owner, before resetting it to factory settings. How can I forcefully re-login in the App Store? I am using iOS 10.3.3.
The answer to the first question refers to Find my iPhone, so is a completely irrelevant answer. Another answer mentions that there is a log out button on the bottom of the screen, but it's not there.
iPad Pro Wi-Fi, iOS 10.3.3