Cache clear issue for Samsung & Pixel device

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?