Keep Apps from Collecting Data About Your Phone by Spoofing Device ID Values
They can easily track what device model you have, your phone number, and in some cases, your hardware MAC addresses.
Many third-party apps will only track your device values for advertising purposes, but some might be trying to snoop on your data for ill intentions
Requirements
Root access
Magisk installed
Settings may varry depending on the make and model of Android you have BUT as long as you have Android 10+ this setting should be available. That said i have found one device i have that is running droid 10 and does not have this setting