A simple function to detect if the user is using a mobile device.
It have two functions:
IsMobile(): Returnstrueif the user is using a mobile device,falseotherwise.OS(): Returns the name of the operating system of the user (Android, iOS, MacOS, Windows).
Support for Linux and other operating systems will not be added, as the function is intended to be used in web development, where the vast majority of users use Android, iOS, MacOS or Windows.