hi @AshleyVinning as MDN mentioned : Warning: Please read Browser detection using the user agent for why serving different Web pages or services to different browsers is usually a bad idea.
But, if you would like to do that anyway here are links that can help you to detect browser and device with help of javascript. it is straight forward simple code to start with.
Be aware that on iOS all browsers runs on webkit as Apple doesn’t allow 3-rd party companies permission use their own code (not surprised). Simply said on iOS Chrome , Firefox or other browsers just look like different apps but it is only different design for Safari. This will most probably change in future as they facing law suite to open codebase because of monopoly. But when it happens …
Good luck
feel free to find more sources to dive deeper in this problematic.
We ran into this question with a client project and created a script to show or hide any desired element based on the device, OS or browser being used by the site visitor.
Here is a link to the tutorial video that goes through the problem as well as walking you through the solution.
If there are any questions please feel free to tag me!