title: Rendering mobile and desktop widget view files
body: <p>The code below is from the category widget which renders to the widget view index file. </p>
  
  <pre><code>class Category extends Widget{         
  
  public function run(){ 
  
          return $this-&gt;render('category/index', [                
         'data' =&gt; TreeHelper::makeProductTree(),
      ]);
  }        
  </code></pre>
  
  <p>}</p>
  
  <p>Now I would like to create another index file for mobile view. But I am having trouble in rendering it. Could you please share your opinion with me how I can render mobile index file as well? </p>
  
  <p>Thank you in advance!  </p>