Availability in the European Union
To reflect the Digital Markets Act's changes, users in the European Union are able to install alternative app marketplaces and install apps offered through alternative app marketplaces in iOS 17.4 or later. Users in the European Union can also install apps from from a developer’s website in iOS 17.5 or later. The country or region of your Apple ID must be set to one of the countries or regions of the European Union, and you must be physically located in the European Union.
Your device eligibility for apps from alternative distribution is determined using on-device processing with only an indicator of eligibility sent to Apple. To preserve your privacy, Apple does not collect your device's location.
If you leave the European Union, you can continue to open and use apps that you previously installed through alternative app distribution. You can continue to update apps from alternative app distribution for up to 30 days after you leave the European Union, and you can continue using alternative app distribution to manage previously installed apps. However, you must be in the European Union to install alternative app marketplaces and new apps through alternative app distribution.
About alternative app distribution in the European Union - Apple Support