Where does the code for formatting happen for Instagram Stories?

On the Android and iOS apps.In a file from the Instagram server.

Sweet!

Websites use an HTML from a server to format a web page. However, Android and iOS apps contain code to do that.