Hi elzorab2003,
Thanks for posting in Apple Support Communities.
We understand that you can't use the Continuity Camera while Hotspot is enabled. In order to use this feature, make sure Wi-Fi, Bluetooth enabled and you're signed in with your Apple ID on both devices with two-factor authentication enabled.
Make sure that your devices have been restarted and you're running the latest software version for your Mac. This will ensure the latest performance fixes are installed.
Continuity Camera: Use your iPhone or iPad to scan documents or take a picture on your Mac - Apple Support
Regards.