Moreover, there is an option AMP Real URL by Cloudflare helps you a lot (due to the fact of the need to setup a support for Signed Exchanges (SXG) at your host/origin), more about it you can read on the article below:
Are you using WordPress? If so, which plugin for the AMP?
Maybe this one?:
I recommend to you to make your Website to start using Cloudflare services by using a tutorial and guide from below article “how to”, or I am afraid you would need to figure it yourself out (can be complex and complicated).