I followed the first two passes of this guide: https://wordpress.org/support/article/changing-the-site-url/
So I edited
The site seemed to work in the most of parts, but if I click on some parts of the site, they redirect to my old domain, so the switch of domain is not fully completed.
What could be the reason?
I am using Elementor page builder with Neve theme.
Just realized that Elementor has itself a tool that does the replacing of urls. So I used it and everything worked :)