Programmatically render a panels page variant
Here is how :

$page = \Drupal\page_manager\Entity\Page::load('featured_content');
//all variants ids, for the example
$variants = $page-&gt;getVariants();
$variantIds = array_keys($variants);
// last variant... could have been $page-&gt;getVariant('{VARIANT_ID}');
$pageVariant = end($variants);
$viewer = new \Drupal\page_manager\Entity\PageVariantViewBuilder();
$arr = $viewer-&gt;view($pageVariant);
\Drupal::service('renderer')-&gt;render($arr);