The theme cannot see the document
Title tags, canonicals, and robots live in a plugin. The crawler receives HTML from a headless front or an app shell. Settings that look green in the CMS are not the document Google fetches. Custom SEO starts with that mismatch.