WordPress Ajax filter: Create two loops for different output styles?

I have understand that you want return 2 different things with the same function. If what I understood is correct then:

With your javascript ajax function you can pass a var which save the page that need the correct loop and you can check the content of this var in your misha_filter_function() to echo one loop or another.

You can now add different styles for each loop.

I recommend you that you save the html tags of your output in a var. ( $output.=… ) and finally you should use echo $output.

If this is not the answer that you are looking for, you can clarify it in a comment.