Unfortunately, we did not find a ready-made and truly working solution for the browser Safari, it does not support working with extensions of this functionality, but you can consider alternative options:
1) Setup for MacOS
2) Anti-detect browsers
3) Work through Chrome or alternative browsers that support extensions