You can turn the hotspot on/off through the Control Center, or create a shortcut that does it.
Note: When you turn it off through the Control Center, the "Allow Others to Join" setting will still be enabled if you look at it, but the hotspot is actually off. It'll be discoverable and devices can connect to it again once you turn it back on through the Control Center, or by viewing the Personal Hotspot page in Settings.