

Counterpoint, what if you don’t end up doing or needing that? Then you’ve paid the cost of complexity and added maintenance burden to update dependencies for no reason.
If you do end up needing a complex feature, perhaps the complexity can be isolated to just the part of your application that needs it? For example React can be used to render just parts of one page.
For mobile apps, perhaps all you need can be accomplished as a progressive web app (which is “just” regular HTML, CSS and JS at the end of the day)? That way you don’t have to deal with or pay for app store distribution.

The mention of the ELK stack made me think of good ol’ LAMP stack (Linux, Apache,
MySQLMariaDB and PHP/Python/Perl). That’s still a reasonable choice today for many, I would say. You can get quite far with this stack serving HTML and CSS, with some JavaScript added on top where you need it.If you search for LAMP stack alternatives you might get some more contemporary spins. Nginx is a quite popular Apache alternative. PostgreSQL is a popular MariaDB alternative. Pretty much any language has some variant of an HTTP server than can serve HTML responses, and a more or less vibrant ecosystem of libraries that makes it easier to do.
You mention Python, something to look at there is Django. I’ve used it before and been quite happy with it, though Python isn’t the language I use most.
In the JavaScript/TypeScript world there are perhaps too many options. One approach is to use a generic server library like Fastify or Express with a templating engine of your choice (f. ex. Liquid) to make the HTML writing part a bit simpler. Templates let you reuse fragments / components, loop over collections, add conditionals and such. For Fastify it’s via a plugin called
@fastify/view. You can then use whatever view library you want (if you need one at all) for handling things in the browser, such as Svelte which another commenter mentioned.If you are interested in Svelte, something to look into there is SvelteKit. With that Svelte will be your “template engine” and it includes both server and browser functionality. Though depending on your needs it may also be overkill, solving for problems you don’t have.