Removing php from generated exe

I am generating an exe which connects to a remote webserver using iframe. All the php and html processing is done on the web server so is there a way to trim php from the generated exe to reduce its size ?
So the exe will only have one index.html file which is an iframe connecting to remote website nothing else.

Please assist.

If you don’t need PHP, then you should consider our other product similar to ExeOutput which is HTML Executable. https://www.htmlexe.com
Get the 2022 version, not the 4.9.

Yes but I sometimes do need full php functionality, and other times just an iframe with all php happening on remote server. so an option to trim out php would be nice in exeout for php.
I was just thinking of ways on reducing size in the final exe.
upx doesnt help much ,
Thanks,