I use Nesk\Puphpeteer, I had to connect the module puppeteer-puppeteer and extra-extra-plugin-stealth, I have these installed as specified.
The location of this file Nesk\Puphpeteer is located in /var/www/html/vendor/ and the modules in /var/www/html/node_modules/
Now I need these modules to connect and use in your script, at the moment my script is as follows
$browser=$puppeteer->launch(['args'=>['--no-sandbox'],'headless' => true]);
$html_page->setUserAgent('Opera/9.80 (Windows NT 6.2; WOW64) Presto/2.12.388 Version/12.17');
Now as there is in the instructions for those plugins listed
const puppeteer = require("puppeteer-extra")
you should connect them, only don't know how to do it in PHP in my code, tell me who knows how to do it.