Please specify the power or output current requirement, For this TNY switch can deliver 20W
Transformer design step in (PI expert or other tool)
Select transformer (E20 or E25)
Calculate required air gap
Calculate no of turns - primary and secondary
Wire thickness primary(25AWG to 32AWG)
Wire thickness for secondary
For 5K isolation use polyester yellow tape in between winding
For 5K isolation use big bobbin or bobbin having more length between primary to secondary(Crepage)
See similar TOP Switch transformer design