A simple WordPress plugin that changes the amphtml tag to redirect AMP to a different domain. All you have to do is install the plugin, go to the settings page and type the domain name you want to change.
This plugin for free. Don't pay for get it.
-PHP 7.4