After creating a navigation bar in an ejs file, I included it in all the files. The issue is that it looks fine on desktop view but does not respond well on mobile devices. There is some space left on the screen and it's not utilizing the entire width on mobile.
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<!-- <a class="navbar-brand" href="#"></a> -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarColor01"
aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle
navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/users/home">Home <span class="sr-only">
(current)</span></a>
</li>
// other menu items...
</% if(objUser.isManager) { %>
<li class="nav-item dropdown" >
<a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink-4" data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"> Manage Approvals</a>
<div class="dropdown-menu dropdown-menu-right dropdown-info" aria-
labelledby="navbarDropdownMenuLink-4">
<a class="dropdown-item" href="/approvals/pldFormApprovals">PLD Form Approval</a>
<a class="dropdown-item" href="/approvals/expenseApprovals">Expense Approval</a>
<a class="dropdown-item" href="#">Procurement Approval</a>
</div>
</li>
<% } %>
</ul>
<form class="form my-2 my-lg-0">
// user details section...
</div>
</nav>
On mobile view, it appears like this:
https://i.sstatic.net/PbN6Q.png
I include this file using <% include ./partials/navbar %>