Currently delving into the world of Web Development and experimenting with BootStrap 4.0. I have a search field positioned to the right of the navbar, which looks fine in desktop view. However, as soon as the dimensions change to that of a phone, my nav links collapse and the search field and button are no longer aligned. It works smoothly on tablets but not on smaller phone screens. Would greatly appreciate any assistance with this issue.
<!-- NavBar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<!-- Brand and Name -->
<a href="#" class="navbar-brand">
<img src="https://logoobject.com/wp-content/uploads/edd/2018/02/Free-Coffee-Logo-1-820x820.png" width = "30" height="30" class="d-inline-block align-top" alt="">
Koffee
</a>
<!-- For hamburger menu -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Collapsable nav -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<!-- Left hand side content use margin-right (mr) -->
<ul class="navbar-nav mr-auto">
<!-- Active Link -->
<li class="nav-item"><a href="#" class="nav-link active">About Us</a></li>
<!-- Dropdown Menu -->
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false">Features</a>
<div class="dropdown-menu" aria-labelledby = "navbarDropdown">
<a href="#" class="dropdown-item">Cultural</a>
<a href="#" class="dropdown-item">The best Cocoa</a>
<a href="#" class="dropdown-item">For the workers</a>
<!-- Just a line :) -->
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Pricing</a>
</div>
</li>
<!-- Disabled link -->
<li class="nav-item"><a href="#" class="nav-link disabled">Reviews</a></li>
</ul>
<!-- Right Hand side content use margin-left (ml) -->
<ul class="navbar-nav ml-auto">
<form class="form-inline">
<input class="form-control" type="search" placeholder="Search..." aria-label="Search">
<button type="button" class="btn btn-outline-success">Go!</button>
</form>
</ul>
</div>
</div>
</nav>