I use Parallels Desktop for my M1 Mac with Ubuntu Server ARM installed in the VM I made.
I installed apache2, Node.js and npm on this VM, and it works, only on my Mac (when visiting the private IP of the machine) and using curl on the VM.
I can't view it on my iPhone.
Image from my Mac:
Image from the VM:
Image from my iPhone