to avoid issue with wp rocket plugin, please add this code :

wp rocket -> settings -> File Optimization ->Excluded JavaScript Files

/wp-content/plugins/purple-lens/assets/acc-main.js
/wp-content/plugins/purple-lens/assets/acc-main.min.js
/wp-content/plugins/purple-lens/assets/acc-scanner.js