With CSS, you can use @media to manipulate website style depending on the screen size.
Can I do the same with JavaScript?
situation:
if website opens using a phone:
id.style.width='500px';
if website opens using a tablet:
id.style.width='800px';