How to add domain to the certificate?

No.

Try:
certbot delete --cert-name www.domain.com
then check that it is gone:
certbot certificates

If gone, then reissue a new cert and choose both names.