@MJ, Thanks for posting in Q&A. Based on my research, I find currently there's no app configuration policy with Teamviewer can set the “Display over other apps” permission. You can contact TeamViewer support to see if they can add this configuration.
I find Zebra device has the OEMConfig to set this. If your device is Zebra, you can try the steps in the following link to configure the OEMconfig to set this.
https://vmlabblog.com/2022/01/configure-teamviewer-on-zebra-with-intune/
Note: Non-Microsoft link, just for the reference.
Thanks for your understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.