Battery Smart interview question

How show different component for different screen size?