Creating a true "icon" from a PNG for dynamic styling?

Photoshop doesn’t produce vectors, you would use a vector drawing program (eg Illustrator, Inkscape, Sketch, Affinity Designer). Here is a list of browser-based vector editors:Best free Adobe Illustrator alternative of 2023 | TechRadar

The services that automatically trace images and convert them to vectors should deal fine with those icons because they’re very simple, but a lasjorg says the images you use for the source of the tracing need to be much bigger.

You cannot, it’s not possible.