Will I be removed from groups on WhatsApp if I upgrade to a new phone? I was removed from all groups before, when I changed my number. Will the same happen if I change my phone? This time, I have the same number but a different phone.
You retain your groups if you have the same number.

Off-topic, you may also want to check the official documentation on how to back-up and restore your chat history to the new phone.