This is my simplistic understanding of the state of play based on the last time I looked into it but as mentioned above it's easy to Google.
iptables -t nat -A POSTROUTING -j TTL --ttl-set 65
You will need TTL target built into the kernel of the ROM you are using. LineageOS is unwilling to do it officially, so I build my own with it enabled.
It's a good idea to only use ipv4 when doing this. A few services are detected on TMUS, so for those VPN. Sprint doesn't seem to care, but they have a patent on TTL detection too from around 10 years ago. I normally do not VPN, but I do use my own DNS since I don't like carrier hijacking.
Set that option and your carrier can't tell if you're tethering. It doesn't require root and works on every phone I've tried it on.
With an AOSP ROM like LineageOS they can't detect it from the phone itself, but there are still some differences in the packets that a phone would send vs the packets a computer would send (you can Google about how to hide tethering on T-Mobile and find some discussion on that); it's not very hard to change your settings to avoid that method of detection.