Can I hide these blocks using a plugin setting?

The top block comes from the Discourse Docs Card Filter Customization > Theme component. You can use the plugin without the theme component