Hubspot, Google Tag Manager and cookie consent

Hi Pam & @himanshurauthan @Phil_Vallender
Thanks for the assistance.
In terms of tracking properly in GTM whicle respecting consent (via Hubspot) maybe it could make a difference if the GTM container was implemented via Hubspot (it’s hardcoded at the moment)?
The documentation mentions:
Please note: the cookie policy banner blocks HubSpot cookies and cookies from HubSpot integrations, including Google Analytics and Google Tag Manager. HubSpot can only block these cookies if you use the integrations. HubSpot cannot automatically block cookies from scripts you manually place on the page.
Customize cookie tracking settings and consent banners (legacy)
Would the GTM container just be blocked without consent and would custom events be made available for triggering all pages tags (as is the custom with the solutions from other Cookie Management Solutions) when consent is given?
Maybe the solution is something completely different?
Sincerely,

Kristian