removes 's' when there is no provider/type
comment DOM + device detection