image url in background image views twig

For me the same solution worked during development:

Inside my views-view-fields--slider.html.twig im using your solution successful with twig debug enabled:

{%
set background_image = fields.field_photo.content|striptags|trim
%}