Moss appearing in a lawn is less a problem and more a signal. It usually points to a combination of shade, moisture retention and compacted soil.
Rather than treating the moss directly, it’s more useful to look at the underlying conditions. Without changing those, it will return.