Or you can do it right and use Elixir's LiveView, from which everyone is getting inspired these days.
LiveView is the brainchild of Chris McCord. He did the prototype on Rails before getting enamoured by Elixir and building Phoenix to popularize the paradigm.
LiveView is amazing and so is Phoenix but Rails has better support for building mobile apps using Hotwire Native.
Multiple models managed on a single page, each with their own controllers and isolated views.