The best way to fix a broken link is to redirect it to another page. For example, if you moved the contents of an article to a different address, then you will need to redirect it to the newer article.
Similarly, if an article does not exist anymore, then you would want to point users to a similar page that is closely related to the contents of the old article.
You can do this by setting up 301 redirects.
First, you will need to install and activate the Redirection plugin.
Upon activation, you need to visit Tools » Redirection page to set up redirects. You need to add the old broken link in the ‘Source URL’ field and the new URL in the ‘Target URL’ field.
After that, click on the ‘Add redirect’ button to save your changes.
You can now test this by visiting the old broken link, and you’ll be redirected to the new page.
Repeat the process for all broken links on your website.