Is it possible to implement the dynamic island for a web app and use it through safari?

I'm trying to figure out if there's a possibility to add dynamic island functionality to a web app, I saw that if you run YouTube on safari and put it in background, the dynamic island will have what you're playing on YouTube.

Is it possible to implement the dynamic island for a web app and use it through safari?
 
 
Q