The header code below will make the bootstrap databases work with different header for mobile mode. The desktop header is in a file called include/header2.php and header is for mobile. Just wanted to know if this is the best way to do a different header in mobile devices.
Header.php
<?php
if (MobileDetected())
echo "<font size='6'>Mobile mode</font>";
else
include("include\header2.php");
?>