How can display Consent form only in countries that require it?

For Workers & Pages, what is the name of the domain?

N/A

What is the error number?

N/A

What is the error message?

N/A

What is the issue or error you’re encountering

Perhaps I can use a script with variable set to eu_country? Not sure how to trigger this correctly.