If you are making changes in Canonical URL by following this –
By going to Posts/Pages and edit this post -> navigate to Yoast SEO “Setting” -> Enter the Canonical URL and click on the “update” button.

The Output of Canonical URL in Non-AMP

If you change the canonical URL in Non-AMP then the canonical URL will not be changed in AMP and if you want to change the canonical URL in AMP then you need to follow these steps.
You will find this option in WordPress Dashboard -> AMP option panel -> Settins -> SEO -> Select “Yoast” option-> Enable “Canonical from Yoast” option

The Output of Canonical URL in AMP

That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.
when i install amp for wp plugin i face issue in google search console, The tag ‘link rel=canonical’ appears more than once in the document. how to solve when i uninstall the plugin it correct how i solve problem without unistalling ampforwp plugin
Hi Yuvraj,
Will you please contact our technical team from here- https://ampforwp.com/support/ they will help you as soon as possible.
Hello,
A recent plugin update has now incorporated 2 <link rel="canonical" codes into the AMP code, rendering it invalid. There's one toward the head and another in the body. I need to find a way to take one of these codes out, as it's causing AMP to fail. Any help would be great.
Thanks.
Hi Alex Wilson,
Will you please contact our technical team from here- https://ampforwp.com/support/ they will help you as soon as possible.
By enabling the canonical from yoast option what will it do?
By enabling Will we suggest google to index the amp page?
Hi Danish,
Will you please contact our technical team from here- https://ampforwp.com/support/ they will help you as soon as possible.