Mobile phone and The computers must be in the same LAN.
1. You need to know the IP of your computer. You can check it through ifconfig. If you want to know the port number, you can check the service port in the mamp software.
2. Modify the mamp configuration and change the Name to the ip address
3. Modify the WordPress website address
4. At this point, if nothing unexpected happens, you can use http://ip: port, if https is configured. The access path is https://ip:port