iPhone: request an old Apple ID when trying to install an application

I am trying to install WhatsApp and when I try to download the application, it asks for an old Apple ID that I used to use.

Everything on my current phone is linked to my new Apple ID and I had to do a factory reset recently for other reasons and I guess that's why the problem has occurred.

I can not even log in to my previous Apple ID because I do not remember the password and I do not have the phone number used to send the verification code.

Any ideas here? Because I am perplexed.