Cache Issue on Samsung & Pixel device android

Hi team we are using android 12 version Samsung device & Pixel device what we observed local storage & sql storage not getting cleared when app is uninstalled. as we have seen this case is not for any other device it is issue with Samsung and pixel only. any solution?

Android 6.0 devices and up are supposed to backup user data on Google Drive, you can disable it by changing android:allowBackup="true" in AndroidManifest.xml to android:allowBackup="false", and maybe also add android:fullBackupContent="false"