Get the platform/device with Capacitor


I have an angular 8 project to which I added Capacitor. Is there some way to get the platform /device without using Ionic?

And if I need to use the platform on Ionic, do I need to install the complete Ionic package?

Can I just install the package or do I need to change it to an ionic project?