Hi please try to add this custom code in wplms-customizer.php file in wplms customizer plugin :
add_Action('rest_api_init',function(){
add_filter('bp_course_api_get_user_single_quiz_data',function($quiz_data, $request ,$user_id){
if(strpos($quiz_data['content'], 'wp-pro') !== false){
add_filter( 'show_admin_bar' , '__return_false' );
add_action('template_include',function($template){
ob_start();
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<?php
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post();
the_content();
endwhile;
endif;
?>
<?php
wp_footer();
?>
</body>
</html>
<?php
echo ob_get_clean();
exit();
});
$quiz_data['content'] = '<div class="wplms_iframe_wrapper"><iframe src="'.get_permalink($quiz_data['id']).'"></iframe></div>';
}
return $quiz_data;
});
});