Is there a way to prevent one app from automatically opening another app when tapping on links?

On iOS, the system prompts me for permission before an app can open a link in another app. However, on Android, it seems to happen automatically without any confirmation.

Thanks in advance!