Changed my Apple ID but am still asked for the password to my previous Apple ID
I changed my old iPhone with a new Apple ID and used my old Apple ID with a new iPhone, but my old device repeatedly asks for the password to my previous Apple ID. I followed the steps mentioned on the site to temporary change my current Apple ID to the email address that iCloud is asking me to sign in with but it does not accept the old Apple ID as it is used by my new device.
Any support is greatly appreciated.
iPhone 7, iOS 13