Is it possible to use different subdomain for website?

I’m using the python app runner with flask to make a website and I was wondering if it was possible to use 2 different subdomains.

I use to access AMP and the other instances but I use to access the website.

Yes, you use a reverse proxy. If you’re already using nginx then you’re half way there.