views – How to show Twig based template after form submit?

I am trying to submit a form and then display data using my controller in a Twig template.

I want to do How to show a string once you submit a form in a page reloading the page? something like this, just instead of showing string, I want to show a table created using Twig.

Something like this:

 return (
            '#theme' => 'my_template',
            '#var_1' => $this->t("var 1"),

Fews things to keep in mind, that I want to display on the same page, so the method using Form API will be much appreciated.