In order to trigger the TRIAC you need to be synchronous with the line phase (zero crossing), so it's convenient to tie the system to the non-isolated side of things. As long as the load does not require isolation (which is the case by any mains driven load), and as long as the user interface is isolated (e.g.: a plastic potentiometer shaft), you're good to go! :-)