My site has 30k canonical tag errors in google search console and all of them are like the below links is my AMP pages. Should I ignore them? Does it have a negative effect on the site's SEO? is there a way to fix this error?
.../amp/
..../amp/?mode=grid
I think that I can use the noindex tag or anything similar, but I'm not sure.
No, thhere is a reason google tells you that something is not right
Yes. Google See 2 or more pages with the same content. And doesnt know what is the right or wrong one.
At worst it will exclude both pages because It thinks you want to boost your site (Black SEO).
Yes you can put a canonical meta tag to your page. Here an example:
www.yoursite.com/blogentry
www.yoursite.com/amp/blogentry
So when the google bot will index both pages.
It will see that the AMP Page is technical the same page as the first one.
When you show different content with a query parameter like
?mode=grid
this parameter should also be included, so google sees the following pages as different onesIf you want to learn more about Canonical and what the Best Practices are, look at Google docs: