Depending on what ap you have, you can probably accomplish this with some kind of vlan setup, or if it's wifi only you can try seeing if it supports client isolation.
Mikrotik
A community-contributed sublemmy for all things Mikrotik. General ISP and network discussion also permitted. Please ensure if you're asking a question you have checked the Wiki First: https://help.mikrotik.com
Mikrotik Rules: Don't post content that is incorrect or potentially harmful to a router/network.
This in itself is not a bannable offence but answers that are verifiably incorrect or will cause issues for other users will be edited or removed.
Examples: Factual errors - "EOIP is always unsecure" Configuration problems - Config that would disable all physical interfaces on a router Trolling - "Downgrade it to 5.26"
Setup a segregated VLAN. Setup firewall rules to block access back to your primary network. It’s good practice for IoT devices and other devices of dubious trust.
I use the poor man’s VLAN: Guest Networks.
i don't have the luxury here of such fancy features, so i just use a second router with its own network and ssid for things that don't need full lan access (streaming devices, mainly). double-nat, but don't care. everything works fine.