Automaticaly tranform component for amp

When I put a tweet on an article, it’s a twitter-widget which works like an iframe. But, in amp, the tweet looks like an quote because embeded tweet need to be like <amp-twitter>(see on amp.dev). A great futur will be to automatically change twitter-widget to <amp-twitter> if we look the amp version.