Change/update canonical tag when global canonical tag is set

Hi,
I have enabled global canonical tag in the weblfow, but would like to change or update the canonical tag on a specific page. How to do it??

For example:- https://www.example.com/abc has canonical tag as set by the global canonical tag url is https://www.example.com/abc. But, I need to change it to something like https://www.example.com/xyz

P.S:- It’s not a CMS collection page, it’s a static page.

I’m running into the exact same issue. Did you happen to come up with a resolution?

You MIGHT be able to do it with script. Google is quite good at executing scripts before processing the page.

However I’m struggling to understand this situation, it sounds like you’d be better off with a redirect or perhaps an hreflang link. Otherwise… why would you want more than one page to have the same canonical?