Theming a views field output using views-view-fields.html.twig I am trying to customize a views output on a view page to wrap the fields in custom markup. I need to group a set of fields to achieve the desired layout like so:

Example:

   &lt;div class="wrapper"&gt;
       {{ field.[field_name_1].content }}
   &lt;/div&gt;
   &lt;div class="wrapper2"&gt;
       {{ field.[field_name_2].content }}
       {{ field.[field_name_3].content }}
       {{ field.[field_name_4].content }}
   &lt;/div&gt;


This is what I have come up with so far:

{% if view.projects_page -%}    
    &lt;div class="project-img columns large-8 medium-12 small-12"&gt;
        {{ field.field_project_image.content }}
    &lt;/div&gt;
    &lt;div class="description columns large-4 medium-10 small-12"&gt;
        {{ field.field_project_header.content }}
        {{ field.field_sub_header.content }}
        {{ field.field_short_project_description.content }}
    &lt;/div&gt;
{%- endif %}


This doesn't throw any errors but also doesn't seem to work because
 {% if view.projects_page -%} does not target the view in the way I thought it would.

So the question is - How do I detect the view with a conditional so I get the output desired above?
You need to refer documentation for the working with twig template. Here you can use conditional twig :

Twig: {% if field.[field_name].content is not empty %} field.[field_name].content {% endif %}