Create Wi-Fi access point in macOS without Internet connection
This sounds like your iPhone deciding not to use the Wifi network it is connected to - perhaps it is instead directing all traffic to the Cellular data connection, since that does have internet access.

Perhaps try Disabling Cellular Data in addition to what you've already done above, so the iPhone has only one available network to send data to.