IP anonymization could be implemented with gtag.js, analytics.js, and Google Tag Manager. There is no need to make any adjustments in GA 4, since IP anonymization is enabled by default. Please see the step-by-step guide on how to anonymize IP addresses on Google Analytics.