How to add device varible, mobile, ipad etc

image
I would like create a new variable for display devices types: ipad, iphone, galaxy , etc. but i don’t know how set the query.