For the host, go to the Host Settings → Monitoring Mode. You should see a toggle to switch to enable/disable Full Stack monitoring. This requires agent 129 or higher.
Turning it from full-stack to infrastructure mode will disable the code level monitoring right away - no restart required. however the application code will still be instrumented until it is restarted.
If you’re turning it off to troubleshoot an application failure, restart the application to be sure all the code instrumentation is removed, and not just disabled.