So I have this menu constructed with <ul> element
<ul>
<li class="item">
<a>Item 1</a>
</li>
<li class="item">
<a>Item 2</a>
</li>
<li class="item">
<a>Item 3</a>
</li>
<li class="item mobile-item">
<a>Item 4</a>
</li>
</ul>
The menu would look look something like this
Item 1 / Item 2 / Item 3
with the last element hidden with the class .mobile-item
On mobile the menu turns into an accordion then only the .mobile-item shows up
My problem now is the outcome is:
Item 1 / Item 2 / Item 3 /
The last class item has border on its right
How would I target the last item class without the .mobile-item in its class list