Iframe disables matomo in host

We have an iframe in our website which is on the same domain like the host. both websites, host and iframe run matomo (with different siteIds), but when “forgetConsentGiven” is called in the iframe the matomo requests in host stop too, i guess because the “mtm_consent_removed” effects the host too because of the same domain.

is there a way to only disable tracking in iframe if it is on the same domain like the host?