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
ICYMI shared this a while back
Android settings > wifi network & internet > tap the network you are on > network info > scroll to "privacy" tap it and switch to "randomized MAC"
or
Open the Settings app.
Tap Network & Internet.
Tap Wi-Fi.
Tap the gear icon associated with the wireless connection to be configured.
Tap Advanced.
Tap Privacy.
Tap Use Randomized MAC