If you want to embed a "mastodon feed" (recent toots from some mastodon account) into a web page, you might want to have a look at my experiments on this:
https://hcschuetz.github.io/mastodon-toots/
It's not a one-size-fits-all solution as you might want to adapt the behavior to your needs. But it might be helpful as a starting point.