You can try the conditional forwarding option in Pi-Hole. From the web admin interface (Settings > DNS), see the section on Conditional forwarding at the bottom of the page.
Note that this does not solve your problem in all network configurations. If it does not, then the next option would be to use the Pi-Hole as DHCP server (which has some benefits as discussed here):