Cookie consent instagram embed

I use the wordpress eombed function to integrate instagram, twitter and youtube video posts.

To be in compliance with the RGPD, I need the instagram javascript call to block cookies based on your choice.

Currently i have:

<script async src="//"></script> 

I would like to have:

<script async data-cmp-src="//"></script> 

You will find an example on this article:

how to do ?

thanks a lot for your help