Many routers have a functionality to create a guest wifi. These usually run on a separate VLAN so that it can’t access other devices on the network. After creating this guest wifi, you have manually disable internet access on this but keep the wifi on.
Unfortunately the process varies between router to router.
👏🏻👏🏻