Using a recent version of Samsung Internet, isSamsungBrowser is not true. Not sure if this is a bug with the embedded version of ua-parser-js, but on this page https://uaparser.js.org/ it is reported correctly.
So maybe it's an older version of ua-parser-js that is packaged with react-device-detect.
Here is a test scenario:
https://stackblitz.com/edit/vitejs-vite-nqvyt5