To show/hide the widgets using code or shopify APIs

Hello friends!
I am stuck and need your help.
Requirements: I want to activate the shopify extension blocks dynamically on the user requirements.
Description:
I am developing an Shopify Public App using Python (FastApi) + PostgreSQL + Frontend (React Router + Shopify Polaris (UI)).
I have to develop a functionality (App Configuration) to activate/deactivate the widget blocks (Checkout, Theme App, Customer Account UI) extensions using flags.
Could anybody provide me the solution/idea to handle the same.
Thanks!
Jitesh Sinha
Annex Cloud.

As I known, your app can provide merchants with a deep link but it is impossible to activate/deactivate via code or Shopify API.

Thanks! for the help. @remy727