I renewed my certificate but browsers don't know there is a new certificate for this website

I just encountered this thread: Renewed certificate for my website hosted in Gitlab Pages isn't getting updated!

And I found the solution there, just posting the answer here to make it clear:

When using gitlab pages, one needs to update the certificate on their control panel - delete the domain and add it again with the contents of fullchain.pem in the public key text field and the contents of privkey.pem in the private key text field