There should be a category: "Background Check" in the Android developer options. You can pretty finely tune or alter the automatically set priorities and permissions for background activity there.

I don't know exactly what the option is called but since Android 8 there is at least a toggle there per app. Later versions have lots more settings.