My answer to the question whether an app may track me is the same every time. So I would rather not be asked.
Settings > Privacy & Security > Tracking > Allow Apps to Request to Track (off)
With it off, apps no longer show the tracking prompt. Each request is treated as if you had chosen Ask App Not to Track, so the app does not get your advertising identifier. The same screen lists apps that asked before, where you can check which ones you once allowed and switch them off.
You keep using the apps as normal, and saying no does not lock features away.
It does not remove ads, and you may well see just as many. It is also no shield against everything: an app still knows what you do inside it, and a service you log into can connect that to your account. Think of it as closing one door.
The switch can be greyed out. Apple lists reasons such as a child account, a managed work or school device or account, and an Apple Account created in the last three days.
Further reading: Apple Support: if an app asks to track your activity
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically